mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 04:05:07 +00:00
GTextEditor: Ctrl+A should select the entire document.
This commit is contained in:
parent
220c7b5f75
commit
5602f3be6c
1 changed files with 6 additions and 0 deletions
|
@ -294,6 +294,12 @@ void GTextEditor::keydown_event(GKeyEvent& event)
|
|||
set_cursor(line_count() - 1, m_lines[line_count() - 1]->length());
|
||||
return;
|
||||
}
|
||||
if (event.modifiers() == Mod_Ctrl && event.key() == KeyCode::Key_A) {
|
||||
m_selection_start = { 0, 0 };
|
||||
set_cursor(line_count() - 1, m_lines[line_count() - 1]->length());
|
||||
update();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!event.modifiers() && event.key() == KeyCode::Key_Backspace) {
|
||||
if (has_selection()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue