mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 11:48:32 +00:00
GTextEditor: Backspace and Delete should work regardless of modifier state.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user