mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
LibGUI: Disallow selection identation in readonly text editors
This commit is contained in:
parent
b5420b8a9a
commit
6697ab33dc
Notes:
sideshowbarker
2024-07-17 09:32:06 +09:00
Author: https://github.com/networkException
Commit: 6697ab33dc
Pull-request: https://github.com/SerenityOS/serenity/pull/14538
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