-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable browser-like DbTab experience (Alt + Nums) #4063
Conversation
|
Thanks for your response. I will change PR in next day. Best |
@droidmonkey, I don't see any QShortcuts in there. |
Arguably those shortcuts are also misplaced. The DB tab widget directly controls which tab is selected so it makes way more sense to have it bind the keyboard shortcut. I wouldn't mind the other tab controlling shortcuts to move as well. |
I made the necessary changes, ready for merge. |
* Pressing ALT+1-9 goes to 1-9 tab * Pressing ALT+0 goes to the last tab
Thanks, sorry for not getting this done first and then refactoring. I will
try to do it in one month (the refactor you mentioned, in nice commits as
logic parts).
śr., 22 sty 2020 o 00:35 Jonathan White <notifications@github.com>
napisał(a):
… I made the necessary changes, ready for merge.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4063?email_source=notifications&email_token=AAJJTTY54EM5AJHNUBC4ODTQ66BD5A5CNFSM4J7PUJRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJRV3BI#issuecomment-576937349>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJJTT26LRXADYJKGL6PHBLQ66BD5ANCNFSM4J7PUJRA>
.
|
Oh its all done |
<3
Sorry for not helping You more. Thank you.
czw., 23 sty 2020 o 15:21 Jonathan White <notifications@github.com>
napisał(a):
… Oh its all done
|
I was mentioning this, about changing other. I will look if I catch sth up or if could help with something other. Appreciate your work, thank You for what you are doing for us, @droidmonkey |
So I tried moving the shortcut commands and realized if you do that then they only work when the tabs have explicit focus which is not desirable. So moved back to MainWindow |
Great! I now understand it completely, that seems familiar with what I was thinking about during stub of change. Thanks that you fixed it. I hope I will give you more help in future, because that tool is avvesome and and want to move from Happy hacking! |
This breaks the possibility to write |
@varjolintu is it not possible to enter an '@' using Shift+2? Is this due to an non-US keyboard? Before I disable this feature on macOS, need to understand how widespread the issue actually is. |
@droidmonkey non-US keyboard layout, yes. Shift+2 gives |
Hey @varjolintu could you tell me what ⌘Command + 0 does on your MacOS with browser with 13 or more tabs? with regards to https://www.idownloadblog.com/2017/05/15/keyboard-shortcut-switch-safari-tabs/ on MacOS: **
Same from 1-2 above in 3-4 said here - no reference about NumLine https://www.quora.com/Is-there-a-shortcut-key-for-switching-between-tabs-in-Chrome-for-Mac/answer/Chris-Chovanek :
On Linux:
For Dear @varjolintu I've checked Linux with Finnish by Dear @droidmonkey maybe there is another general 'ModX' key in Qt introducted to have this working across platforms and kb layouts? I have a glance on it but not found it. |
@JulianVolodia ⌘Command + 0 does nothing with Chromium or Firefox. The issue is not using ⌘Command+2 but ⌥Alt+2. |
The same ⌥Alt+2 for writing @ applies to following keyboard layouts on macOS: |
I am asking you because:
I understand because that is a glitch. Change introduce Alt + NumLine as I proposed and @droidmonkey prepared change, but I missed completely testing on MacOS - so I want to repair my mistake. That is why I asking that. On MacOS there should be only using Command as you said. But @varjolintu please tell me how Chrome or Firefox behave on your system, or actually what is more natural for MacOS user. Thanks in advance and sorry for inconvenience. PS to C + 0 --> good, and Command + 9? does it go to last tab in them, or to nineth of them? |
@JulianVolodia I understand. This happens with my desktop with Apple Keyboard. Also with my old MacBook Pro. And I agree using the ⌘Command with macOS would be far better, because it seems to switch tabs with both Chromium and Firefox (so that must be the standard way to do it). Just the ⌘Command+0 doesn't switch to the tenth tab. It does't do anything. It's common that with non-US keyboard layouts, the tab switching always happens with CTRL+Tab and CTRL+Shift+Tab. Sadly, I haven't been able to get that to work with macOS and Qt. |
@varjolintu wait a moment. Everything is allright on your side. Only bleeding-edge KeepassXC have infroduced bug because of me.
On Chomium/Firefox on Linux also does nothing. I must mix something up when reporting, or recheck on Windows.
Um.... that's strange. Have you used on MacOS, Qt.Key s: Could you try to change locally and post feedback? |
@JulianVolodia I made a new PR for it: #4305 |
I must check why (different on Windows?) I proposed combo with 0 to go to last not 9. On Linux and MacOS this is 9, which activate last one. |
@varjolintu I checked your commit and 👍 because as I faith you tested it should fix @ character on MacOS but 👎 because you said that cmmnd + 0 do nothing but coded the behaviour of cmmnd + 9. |
@JulianVolodia With KeePassXC ⌘Command+0 changes to last selected tab, as it is coded. What you asked was what it does with browsers. As I said, nothing happens with Chromium and Firefox. I don't see any reason why ⌘Command+0 would be changed to ⌘Command+9 in KeePassXC. EDIT: I was wrong. See below. |
Have you read my comment? I don't know why I proposed 0 as last. 9 should go because UX of 80% users who use browser (most commonly used SW these days...) will look for cmd+9 not what you coded, is it clear now @varjolintu ? |
And, as I mentioned there should go fix on Linux and I must check on windows but I dont have any other than Linux box near me under control. Cheers. @droidmonkey could we change it once again? |
@JulianVolodia Sorry. Missed that. You are absolutely correct. 9 goes to the last tab with any browser. |
If you say so, I am sure now @varjolintu there is another bug I introducted in the very first place that missed (and cannot check now) if on Windows there is same as on MacOS/Linux and 0 was another mistake. I just want to return your full support for KB but other users on Mac could like this 9'combo as on browser. I hope we are good now. Cheers |
This is follow up of: PR keepassxreboot#4063 Enable browser-like DbTab experience (Alt + Nums) PR keepassxreboot#4305 Fix browser-like DbTab experience with macOS This commit introduces desired behaviour across platforms. On MacOS only Command key + Nums combination should be used. (on MacOS, ⌘Command is QT::CTRL) On Linux and Windows there are combinations with Ctrl and (Left) Alt. (code could be reused) This is not breaking for various keyboard layout organization on MacOS because of @varjolintu fixes, nor breaking on Linux or Windows because they use AltGr (Right Alt) as modkey.
This is follow up of: PR keepassxreboot#4063 Enable browser-like DbTab experience (Alt + Nums) PR keepassxreboot#4305 Fix browser-like DbTab experience with macOS This commit introduces desired behaviour across platforms. On MacOS only Command key + Nums combination should be used. (on MacOS, ⌘Command is QT::CTRL) On Linux and Windows there are combinations with Ctrl and (Left) Alt. (code could be reused) This is not breaking for various keyboard layout organization on MacOS because of @varjolintu fixes, nor breaking on Linux or Windows because they use AltGr (Right Alt) as modkey.
@varjolintu said in #4305 :
Which things? BTW. in general that was rude imho, but maybe I am wrong. If you could, I hope you will tell me what things are broken and why you said that. @varjolintu commented on change https://github.com/keepassxreboot/keepassxc/pull/4306/files/c66ad4144381e614e8c2ff62a6a817167f0eecf0 :
Have you read commit message before commenting? I described why it is there. Also, see #4063 (comment) because there is reference that Windows also have this feature working as on Linux. Your commit does the same thing for Windows, but silently because on Windows MacOS preprocessor constant is not definied. I hope you made mistake in comment. So, to be verbose and clear:
Check full @droidmonkey should I delete my PR #4306 or you like it? |
@JulianVolodia What I meant was this: your new PR modified the shortcuts in a way the CTRL+num are already activated on every system, plus it added ALT+num shortcuts on Windows and Linux as additional shortcuts. So both of those were active, and that's not something we want, is it? I'm not quite sure what do you mean. The whole point was just to change MacOS to use CTRL instead of ALT. If we want to use some different shortcuts on AIX, then it would be easiest to add |
I m the one
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Sami Vänttinen <notifications@github.com>
Sent: Sunday, February 9, 2020 8:09:01 PM
To: keepassxreboot/keepassxc <keepassxc@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: Re: [keepassxreboot/keepassxc] Enable browser-like DbTab experience (Alt + Nums) (#4063)
@JulianVolodia<https://github.com/JulianVolodia> What I meant was this: your new PR modified the shortcuts in a way the CTRL+num are already activated on every system, plus it added ALT+num shortcuts on Windows and Linux as additional shortcuts. So both of those were active, and that's not something we want, is it?
I'm not quite sure what do you mean. The whole point was just to change MacOS to use CTRL instead of ALT.
If we want to use some different shortcuts on AIX, then it would be easiest to add #if defined(Q_OS_UNIX) && !defined(Q_OS_MACOS) define to the PR.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#4063?email_source=notifications&email_token=AII4KW4CP6MV5AIHBWYVY2LRCAE73A5CNFSM4J7PUJRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGNMJI#issuecomment-583849509>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AII4KW7ZWCOCPIGMKLHX6KLRCAE73ANCNFSM4J7PUJRA>.
|
@varjolintu OK, so I need more coffee when I writing to someone about UX I think. Let's start (and hope that will be end and you will get my point):
Yes, this change is about that.
No. Was not. Have you read my commit msg? So with 0 and 9 was clearly the bug. All ppl use 9 to end and 1-8 to static first tabs. 0 not used. Clear now I hope. Same goes below. Here goes rollercoaster:
As I described above, and tired you probably (I feel tired about that, this is pointless for me much more but not for UX case of some group of users - as they could say more of them use Chromium than are from Finland so could say that this change is more important not because non-US layout).
That was easier to code reuse if I understand correctly. Than Kopi-Pasten theorem applying with 3 blocks - just unneded.
So, easiest for you refactoring it, as the code readed in first place or easier to implement now? I got your point, maybe I am just out of doing it well because time passed and must more practice. |
@JulianVolodia The PR is already updated so it would solve all the problems we have discovered. |
Added - Custom Light and Dark themes [#4110, #4769, #4791, #4796, #4892, #4915] - Compact mode to use classic Group and Entry line height [#4910] - View menu to quickly switch themes, compact mode, and toggle UI elements [#4910] - Search for groups and scope search to matched groups [#4705] - Save Database Backup feature [#4550] - Sort entries by "natural order" and move lines up/down [#4357] - Option to launch KeePassXC on system startup/login [#4675] - Caps Lock warning on password input fields [#3646] - Add "Size" column to entry view [#4588] - Browser-like tab experience using Ctrl+[Num] (Alt+[Num] on Linux) [#4063, #4305] - Password Generator: Define additional characters to choose from [#3876] - Reports: Database password health check (offline) [#3993] - Reports: HIBP online service to check for breached passwords [#4438] - Auto-Type: DateTime placeholders [#4409] - Browser: Show group name in results sent to browser extension [#4111] - Browser: Ability to define a custom browser location (macOS and Linux only) [#4148] - Browser: Ability to change root group UUID and inline edit connection ID [#4315, #4591] - CLI: `db-info` command [#4231] - CLI: Use wl-clipboard if xclip is not available (Linux) [#4323] - CLI: Incorporate xclip into snap builds [#4697] - SSH Agent: Key file path env substitution, SSH_AUTH_SOCK override, and connection test [#3769, #3801, #4545] - SSH Agent: Context menu actions to add/remove keys [#4290] Changed - Complete replacement of default database icons [#4699] - Complete replacement of application icons [#4066, #4161, #4203, #4411] - Complete rewrite of documentation and manpages using Asciidoctor [#4937] - Complete refactor of config files; separate between local and roaming [#4665] - Complete refactor of browser integration and proxy code [#4680] - Complete refactor of hardware key integration (YubiKey and OnlyKey) [#4584, #4843] - Significantly improve performance when saving and opening databases [#4309, #4833] - Remove read-only detection for database files [#4508] - Overhaul of password fields and password generator [#4367] - Replace instances of "Master Key" with "Database Credentials" [#4929] - Change settings checkboxes to positive phrasing for consistency [#4715] - Improve UX of using entry actions (focus fix) [#3893] - Set expiration time to Now when enabling entry expiration [#4406] - Always show "New Entry" in context menu [#4617] - Issue warning before adding large attachments [#4651] - Improve importing OPVault [#4630] - Improve AutoOpen capability [#3901, #4752] - Check for updates every 7 days even while still running [#4752] - Improve Windows installer UI/UX [#4675] - Improve config file handling of portable distribution [#4131, #4752] - macOS: Hide dock icon when application is hidden to tray [#4782] - Browser: Use unlock dialog to improve UX of opening a locked database [#3698] - Browser: Improve database and entry settings experience [#4392, #4591] - Browser: Improve confirm access dialog [#2143, #4660] - KeeShare: Improve monitoring file changes of shares [#4720] - CLI: Rename `create` command to `db-create` [#4231] - CLI: Cleanup `db-create` options (`--set-key-file` and `--set-password`) [#4313] - CLI: Use stderr for help text and password prompts [#4086, #4623] - FdoSecrets: Display existing secret service process [#4128] Fixed - Fix changing focus around the main window using tab key [#4641] - Fix search field clearing while still using the application [#4368] - Improve search help widget displaying on macOS and Linux [#4236] - Return keyboard focus after editing an entry [#4287] - Reset database path after failed "Save As" [#4526] - Use SHA256 Digest for Windows code signing [#4129] - Improve handling of ccache when building [#4104, #4335] - macOS: Properly re-hide application window after browser integration and Auto-Type usage [#4909] - Auto-Type: Fix crash when performing on new entry [#4132] - Browser: Send legacy HTTP settings to recycle bin [#4589] - Browser: Fix merging browser keys [#4685] - CLI: Fix encoding when exporting database [#3921] - SSH Agent: Improve reliability and underlying code [#3833, #4256, #4549, #4595] - FdoSecrets: Fix crash when editing settings before service is enabled [#4332]
1-9 goes to 1-9 tab; 0 - goes to the last one
Please read Testing strategy, thanks!
Type of change
Description and Context
In browsers we could not only use CTRL + PgDn/PgUp and CTRL (+ SHIFT) + TAB to switch tabs.
There is also ALT + which have various types of work. 1-9 operates on tabs from 1st to 9th one, and (on Chrome?) the 0 goes to last one.
On the another similar to KPXC application found this kind of feature. ;)
Screenshots
N/A
Testing strategy
This is WIP, I wonder if this code could be (bc of less complexity) or should change to functor or some Signal mapper.
Checklist:
-DWITH_ASAN=ON
. [REQUIRED]Not yet: - ✅ My change requires a change to the documentation, and I have updated it accordingly.
Not yet: - ✅ I have added tests to cover my changes.