mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
setupEditorShortcuts is a hook, not a filter
add-ons can modify cuts in place
This commit is contained in:
parent
ca37b15aa7
commit
02a3e14c13
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ class Editor:
|
|||
("Ctrl+Shift+X", self.onHtmlEdit),
|
||||
("Ctrl+Shift+T", self.onFocusTags)
|
||||
]
|
||||
runFilter("setupEditorShortcuts", cuts, self)
|
||||
runHook("setupEditorShortcuts", cuts, self)
|
||||
for keys, fn in cuts:
|
||||
QShortcut(QKeySequence(keys), self.widget, activated=fn)
|
||||
|
||||
|
|
Loading…
Reference in a new issue