setupEditorShortcuts is a hook, not a filter

add-ons can modify cuts in place
This commit is contained in:
Damien Elmes 2017-08-26 18:47:45 +10:00
parent ca37b15aa7
commit 02a3e14c13

View File

@ -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)