Skip to content

Commit

Permalink
Don't capture ctrl+tab in text box, fixes #123
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Jan 17, 2025
1 parent 686185b commit bde7e2b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/text_box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -984,12 +984,14 @@ where
status = Status::Captured;
}
Named::Tab => {
if modifiers.shift() {
editor.action(Action::Unindent);
} else {
editor.action(Action::Indent);
if !modifiers.control() {
if modifiers.shift() {
editor.action(Action::Unindent);
} else {
editor.action(Action::Indent);
}
status = Status::Captured;
}
status = Status::Captured;
}
_ => (),
},
Expand Down

0 comments on commit bde7e2b

Please sign in to comment.