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