mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
GTextEditor: Backspace and Delete should work regardless of modifier state.
This commit is contained in:
parent
032549d7bf
commit
ccda716028
Notes:
sideshowbarker
2024-07-19 15:07:05 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ccda716028f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue