hotkeys: avoid hotkeys for "D" and "T"
commit2de9fe4d21b78465fedcfdaa5f8d0b12e74eb24f
authorDavid Aguilar <davvid@gmail.com>
Tue, 15 Nov 2022 07:22:38 +0000 (14 23:22 -0800)
committerDavid Aguilar <davvid@gmail.com>
Tue, 15 Nov 2022 07:43:40 +0000 (14 23:43 -0800)
treeab4e37efdf44a38f346b89ffd332ce5340820e27
parentecf60097a1b000820029e16ff54e55c9fc58daa8
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>
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