From ccda716028f2273a479a0c9198cef63db807a5e0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 8 Mar 2019 18:50:14 +0100 Subject: [PATCH] GTextEditor: Backspace and Delete should work regardless of modifier state. --- LibGUI/GTextEditor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LibGUI/GTextEditor.cpp b/LibGUI/GTextEditor.cpp index 334d63abb9..c24d7354b1 100644 --- a/LibGUI/GTextEditor.cpp +++ b/LibGUI/GTextEditor.cpp @@ -360,7 +360,7 @@ void GTextEditor::keydown_event(GKeyEvent& event) return; } - if (!event.modifiers() && event.key() == KeyCode::Key_Backspace) { + if (event.key() == KeyCode::Key_Backspace) { if (has_selection()) { delete_selection(); return; @@ -386,7 +386,7 @@ void GTextEditor::keydown_event(GKeyEvent& event) return; } - if (!event.modifiers() && event.key() == KeyCode::Key_Delete) { + if (event.key() == KeyCode::Key_Delete) { if (has_selection()) { delete_selection(); return;