Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Shakhnazaryan <gshakhn@gmail.com>2018-09-27 02:07:21 +0300
committerJonathan White <support@dmapps.us>2018-12-26 00:00:02 +0300
commitb1ff346f6311936a342397eaaca262a6f08e19c7 (patch)
treeb813f00e8ba2c216440965b8af11d444d81022d4 /src/core/Bootstrap.cpp
parentc34b0069ff3461138823fd275d6ef52d2ef88132 (diff)
Allow Enter key to select recent DB on OS X
* Override `keyPressEvent`on WelcomeWidget on OS X to `openDatabaseFromFile`. openDatabaseFromFile is already invoked via the QListWidget::itemActivated signal, but this signal doesn't fire on OS X for Enter. QListWidget::itemActivated activates on an OS specific activation key. [1] On Windows/X11, this is Enter, which lets the user easily navigate with just the keyboard. On OS X, this is Ctrl+O, which is already bound to Open Database. This means that itemActivated cannot fire via the keyboard. Per StackOverflow [2], the recommended solution is to catch the enter/return key press manually. This seems like a common problem with Qt. [3] [4] [1] https://doc.qt.io/archives/qt-4.8/qlistwidget.html#itemActivated [2] https://stackoverflow.com/questions/31650780/when-does-a-qtreeview-emit-the-activated-signal-on-mac [3] https://forum.qt.io/topic/36147/pyside-itemactivated-not-triggered-on-mac-os-x-with-return-key [4] https://github.com/dolphin-emu/dolphin/pull/6099
Diffstat (limited to 'src/core/Bootstrap.cpp')
0 files changed, 0 insertions, 0 deletions