mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-27 23:16:04 +01:00
Handle key compression when checking if ';' has been typed
This commit is contained in:
parent
9442cbf38d
commit
c911dfc40e
1 changed files with 1 additions and 1 deletions
|
|
@ -545,7 +545,7 @@ def insert_image(self, href):
|
|||
|
||||
def keyPressEvent(self, ev):
|
||||
QPlainTextEdit.keyPressEvent(self, ev)
|
||||
if (ev.key() == Qt.Key_Semicolon or unicode(ev.text()) == ';') and tprefs['replace_entities_as_typed'] and self.syntax == 'html':
|
||||
if (ev.key() == Qt.Key_Semicolon or ';' in unicode(ev.text())) and tprefs['replace_entities_as_typed'] and self.syntax == 'html':
|
||||
self.replace_possible_entity()
|
||||
|
||||
def replace_possible_entity(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue