mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
prevent qt from hiding shortcuts in reviewer context
This commit is contained in:
parent
4b19e47b3f
commit
8ac5cc8dff
1 changed files with 2 additions and 0 deletions
|
@ -631,6 +631,8 @@ time = %(time)d;
|
|||
label, scut, func = row
|
||||
opts = {}
|
||||
a = m.addAction(label)
|
||||
if qtminor >= 10:
|
||||
a.setShortcutVisibleInContextMenu(True)
|
||||
if scut:
|
||||
a.setShortcut(QKeySequence(scut))
|
||||
if opts.get("checked"):
|
||||
|
|
Loading…
Reference in a new issue