mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibGUI: Move editing key handling up to AbstractView
We want all views to respond to the editing key as long as the relevant edit trigger is activated.
This commit is contained in:
@@ -166,14 +166,6 @@ void TableView::keydown_event(KeyEvent& event)
|
||||
if (!model())
|
||||
return;
|
||||
|
||||
if (event.key() == KeyCode::Key_F2) {
|
||||
if (is_editable() && edit_triggers() & EditTrigger::EditKeyPressed) {
|
||||
begin_editing(cursor_index());
|
||||
event.accept();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (event.key() == KeyCode::Key_Return) {
|
||||
activate(cursor_index());
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user