mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
LibGUI: Disallow selection identation in readonly text editors
This commit is contained in:
committed by
Linus Groh
parent
b5420b8a9a
commit
6697ab33dc
@@ -868,6 +868,8 @@ void TextEditor::keydown_event(KeyEvent& event)
|
||||
}
|
||||
|
||||
if (event.key() == KeyCode::Key_Tab) {
|
||||
if (!is_editable())
|
||||
return;
|
||||
if (has_selection()) {
|
||||
if (event.modifiers() == Mod_Shift) {
|
||||
unindent_selection();
|
||||
|
||||
Reference in New Issue
Block a user