mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
LibGUI: Disallow selection identation in readonly text editors
This commit is contained in:
parent
b5420b8a9a
commit
6697ab33dc
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue