mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibGUI: Add CTRL+Enter callback to TextEditor
This commit is contained in:
committed by
Andreas Kling
parent
883768c646
commit
7da0d94d03
@@ -781,6 +781,12 @@ void TextEditor::keydown_event(KeyEvent& event)
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.modifiers() == KeyModifier::Mod_Ctrl && event.key() == KeyCode::Key_Return) {
|
||||
if (on_ctrl_return_pressed)
|
||||
on_ctrl_return_pressed();
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.key() == KeyCode::Key_Return) {
|
||||
if (on_return_pressed)
|
||||
on_return_pressed();
|
||||
|
||||
Reference in New Issue
Block a user