Merge pull request #19017 from toger5/fix_no_a_input_script_editor_osx

fixed capital A osx
This commit is contained in:
Rémi Verschelde 2018-05-18 20:04:31 +02:00 committed by GitHub
commit d6c15bd96a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2950,13 +2950,13 @@ void TextEdit::_gui_input(const Ref<InputEvent> &p_gui_input) {
case KEY_A: { case KEY_A: {
#ifndef APPLE_STYLE_KEYS #ifndef APPLE_STYLE_KEYS
if (!k->get_command() || k->get_shift() || k->get_alt()) { if (!k->get_control() || k->get_shift() || k->get_alt()) {
scancode_handled = false; scancode_handled = false;
break; break;
} }
select_all(); select_all();
#else #else
if (k->get_alt() || (!k->get_shift() && !k->get_command() && !k->get_control())) { if ((!k->get_command() && !k->get_control())) {
scancode_handled = false; scancode_handled = false;
break; break;
} }