1
Fork 0
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:
networkException 2022-07-10 13:36:29 +02:00 committed by Linus Groh
parent b5420b8a9a
commit 6697ab33dc

View file

@ -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();