Files
yacreader/YACReader
Igor Kushnir 88e0f5513a Reader: make 3 keyboard shortcuts work with non-Latin layouts
MainWindowViewer::keyPressEvent()'s custom matching of these shortcuts
does not leverage all the features of standard Qt shortcut matching. As
a result, the corresponding actions cannot be triggered when their
assigned shortcuts consist of a single Latin letter without modifiers
and e.g. Ukrainian keyboard layout is active.

Furthermore, some key presses (e.g. Scroll Lock in my customized
keyboard layout) set QKeyEvent::key() to 0, which the custom matching
considers equal to an unassigned shortcut. So an action without shortcut
is triggered by such a key press.

Adding these 3 actions to MainWindowViewer and connecting the
corresponding slots to their triggered() signals allows to remove the
custom matching code and thus eliminates both of its issues.
2022-01-15 18:02:30 +02:00
..
2021-10-18 21:56:52 +02:00
2021-10-18 21:56:52 +02:00
2019-06-01 16:04:48 +02:00
2021-10-19 00:00:08 +02:00
2021-10-19 00:00:08 +02:00
2021-10-19 00:00:08 +02:00
2021-11-02 11:02:32 +01:00
2021-10-19 00:00:08 +02:00
2018-02-24 18:11:53 +00:00
2018-08-07 11:09:02 +02:00
2019-06-01 16:04:48 +02:00
2021-10-19 00:00:08 +02:00
2021-10-18 21:56:52 +02:00
2019-06-01 16:04:48 +02:00
2021-10-19 00:00:08 +02:00
2021-10-19 00:00:08 +02:00
2022-01-15 15:51:59 +01:00
2021-10-19 00:00:08 +02:00
2018-08-07 11:09:02 +02:00
2022-01-15 15:51:59 +01:00
2021-10-18 21:56:52 +02:00
2018-02-24 18:11:53 +00:00
2022-01-15 15:51:59 +01:00