Skip to content

Commit

Permalink
Fixed tabs reordering when editing text
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Nov 25, 2023
1 parent 38d0088 commit 519c32f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/pages/dashboard_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -583,15 +583,23 @@ class _DashboardPageState extends State<DashboardPage> with WindowListener {
LogicalKeyboardKey.arrowLeft,
modifiers: [ModifierKey.controlModifier],
),
callback: _moveTabLeft,
callback: () {
if (ModalRoute.of(context)?.isCurrent ?? false) {
_moveTabLeft();
}
},
);
// Move Tab Right (Ctrl + ->)
hotKeyManager.register(
HotKey(
LogicalKeyboardKey.arrowRight,
modifiers: [ModifierKey.controlModifier],
),
callback: _moveTabRight,
callback: () {
if (ModalRoute.of(context)?.isCurrent ?? false) {
_moveTabRight();
}
},
);
// New Tab (Ctrl + T)
hotKeyManager.register(
Expand Down

0 comments on commit 519c32f

Please sign in to comment.