diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2019-05-09 18:26:33 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2019-05-09 21:08:43 +0200 |
commit | 793b50651dfe496cac15007d6e8f82672d981b1e (patch) | |
tree | f5ae0ebe7853025ae789f9c5aa12a4a39abcca34 /platform/windows | |
parent | b96cd577c3022c8431c7911b24c9d294c7f9c8d9 (diff) |
Script Text Editor: respect Move Down and Move Up shortcuts on macOS
Handle shortcuts in CodeTextEditor::_input() so that we get them before its
text_editor's TextEdit::_gui_input() function does. If we don't, that
function will execute the following code:
if (k->get_shift()) {
_pre_shift_selection();
}
#ifdef APPLE_STYLE_KEYS
if (k->get_command()) {
cursor_set_line(0);
} else
#endif
So using Command+Shift+Up for the Move Up shortcut would just result in
selecting all text to the beginning of the document, rather than moving the
current line up.
Fixes #28059.
Diffstat (limited to 'platform/windows')
0 files changed, 0 insertions, 0 deletions