hotkeys: avoid hotkeys for "D" and "T"
commita8f80bbb8a41cf4ae96a6b1056eb87fa2df284c4
authorDavid Aguilar <davvid@gmail.com>
Tue, 15 Nov 2022 07:22:38 +0000 (14 23:22 -0800)
committerDavid Aguilar <davvid@gmail.com>
Wed, 23 Nov 2022 05:22:13 +0000 (22 21:22 -0800)
tree4dae9e132b11a92f0a7809732f0a5471d4a87c56
parent86c499addfe7e5260fc559b0f307fe412e043cac
hotkeys: avoid hotkeys for "D" and "T"

Some configuration can cause the menu hotkeys to register in the context
of the commit message editor.

The hotkeys we put on the menu actions were only put there for aesthetic
purposes. Doing so make the hotkey text appear alongside the menu text
so that users can more easily discover the hotkeys.

Avoid registering these hotkeys to avoid having these hotkeys activated
when interacting with the text widgets. We'll lose the menu annotations,
but it should avoid issues observed on Debian/Linux with Qt 5.12.

Closes #1270
Reported-by: @lutra on github.com
Signed-off-by: David Aguilar <davvid@gmail.com>
(cherry picked from commit 2de9fe4d21b78465fedcfdaa5f8d0b12e74eb24f)
CHANGES.rst
cola/hotkeys.py
cola/widgets/main.py
cola/widgets/text.py
docs/hotkeys.html
docs/hotkeys_de.html
docs/hotkeys_zh_CN.html
docs/hotkeys_zh_TW.html