mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 04:43:44 +02:00
...
This commit is contained in:
parent
cec29eb6d8
commit
c9b2cdfd67
1 changed files with 1 additions and 0 deletions
|
|
@ -85,6 +85,7 @@ def handle_key_press(self, ev, editor):
|
|||
|
||||
elif key == Qt.Key_Home and no_modifiers(ev, Qt.ControlModifier) and not is_cursor_on_wrapped_line(editor):
|
||||
cursor, text = get_text_before_cursor(editor)
|
||||
cursor = editor.textCursor()
|
||||
mode = cursor.KeepAnchor if test_modifiers(ev, Qt.ShiftModifier) else cursor.MoveAnchor
|
||||
cursor.movePosition(cursor.StartOfBlock, mode)
|
||||
if text.strip():
|
||||
|
|
|
|||
Loading…
Reference in a new issue