mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 19:47:17 +02:00
LibGUI: Don't call on_escape_pressed from EditingEngines
The call will be handled in `TextEditor::keydown_event`, just after that `EditingEngine::on_key()` is called.
This commit is contained in:
committed by
Andreas Kling
parent
4aa0ef9f98
commit
201890e109
Notes:
sideshowbarker
2024-07-16 22:17:03 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/201890e109 Pull-request: https://github.com/SerenityOS/serenity/pull/19907
@@ -20,12 +20,6 @@ bool RegularEditingEngine::on_key(KeyEvent const& event)
|
||||
if (EditingEngine::on_key(event))
|
||||
return true;
|
||||
|
||||
if (event.key() == KeyCode::Key_Escape) {
|
||||
if (m_editor->on_escape_pressed)
|
||||
m_editor->on_escape_pressed();
|
||||
return true;
|
||||
}
|
||||
|
||||
if (event.alt() && event.shift() && event.key() == KeyCode::Key_S) {
|
||||
sort_selected_lines();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user