mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 07:13:11 +02:00
Edit book: Fix option-; not working in the editor. Fixes #1823040 [Mac Option-<key> shortcuts don't work in editor](https://bugs.launchpad.net/calibre/+bug/1823040)
This commit is contained in:
parent
a43207d38a
commit
79c21b14bc
1 changed files with 4 additions and 1 deletions
|
|
@ -606,7 +606,10 @@ def handle_key_press(self, ev, editor):
|
|||
key = ev.key()
|
||||
is_xml = editor.syntax == 'xml'
|
||||
|
||||
if tprefs['replace_entities_as_typed'] and (key == Qt.Key_Semicolon or ';' in ev_text):
|
||||
if tprefs['replace_entities_as_typed'] and (
|
||||
';' in ev_text or
|
||||
(key == Qt.Key_Semicolon and no_modifiers(ev, Qt.ControlModifier, Qt.AltModifier))
|
||||
):
|
||||
self.replace_possible_entity(editor)
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue