diff options
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r-- | Userland/Libraries/LibGUI/TextEditor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/TextEditor.cpp b/Userland/Libraries/LibGUI/TextEditor.cpp index 8ea4a8ee47..29c50da873 100644 --- a/Userland/Libraries/LibGUI/TextEditor.cpp +++ b/Userland/Libraries/LibGUI/TextEditor.cpp @@ -931,7 +931,8 @@ void TextEditor::keydown_event(KeyEvent& event) return; } - if (!event.ctrl() && !event.alt() && event.code_point() != 0) { + // AltGr is emulated as Ctrl+Alt; if Ctrl is set check if it's not for AltGr + if ((!event.ctrl() || event.altgr()) && !event.alt() && event.code_point() != 0) { TemporaryChange change { m_should_keep_autocomplete_box, true }; add_code_point(event.code_point()); return; |