Skip to content

Commit

Permalink
Fixed tabs shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
IngvarX committed Apr 21, 2021
1 parent 807bba5 commit 60c3dc2
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/Camelot/Views/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,97 +19,97 @@
</Design.DataContext>

<Window.KeyBindings>
<KeyBinding Gesture="Ctrl+D1" Command="{Binding GoToTabCommand}">
<KeyBinding Gesture="Ctrl+D1" Command="{Binding ActiveTabsListViewModel.GoToTabCommand}">
<KeyBinding.CommandParameter>
<system:Int32>0</system:Int32>
</KeyBinding.CommandParameter>
</KeyBinding>
<KeyBinding Gesture="Ctrl+D2" Command="{Binding GoToTabCommand}">
<KeyBinding Gesture="Ctrl+D2" Command="{Binding ActiveTabsListViewModel.GoToTabCommand}">
<KeyBinding.CommandParameter>
<system:Int32>1</system:Int32>
</KeyBinding.CommandParameter>
</KeyBinding>
<KeyBinding Gesture="Ctrl+D3" Command="{Binding GoToTabCommand}">
<KeyBinding Gesture="Ctrl+D3" Command="{Binding ActiveTabsListViewModel.GoToTabCommand}">
<KeyBinding.CommandParameter>
<system:Int32>2</system:Int32>
</KeyBinding.CommandParameter>
</KeyBinding>
<KeyBinding Gesture="Ctrl+D4" Command="{Binding GoToTabCommand}">
<KeyBinding Gesture="Ctrl+D4" Command="{Binding ActiveTabsListViewModel.GoToTabCommand}">
<KeyBinding.CommandParameter>
<system:Int32>3</system:Int32>
</KeyBinding.CommandParameter>
</KeyBinding>
<KeyBinding Gesture="Ctrl+D5" Command="{Binding GoToTabCommand}">
<KeyBinding Gesture="Ctrl+D5" Command="{Binding ActiveTabsListViewModel.GoToTabCommand}">
<KeyBinding.CommandParameter>
<system:Int32>4</system:Int32>
</KeyBinding.CommandParameter>
</KeyBinding>
<KeyBinding Gesture="Ctrl+D6" Command="{Binding GoToTabCommand}">
<KeyBinding Gesture="Ctrl+D6" Command="{Binding ActiveTabsListViewModel.GoToTabCommand}">
<KeyBinding.CommandParameter>
<system:Int32>5</system:Int32>
</KeyBinding.CommandParameter>
</KeyBinding>
<KeyBinding Gesture="Ctrl+D7" Command="{Binding GoToTabCommand}">
<KeyBinding Gesture="Ctrl+D7" Command="{Binding ActiveTabsListViewModel.GoToTabCommand}">
<KeyBinding.CommandParameter>
<system:Int32>6</system:Int32>
</KeyBinding.CommandParameter>
</KeyBinding>
<KeyBinding Gesture="Ctrl+D8" Command="{Binding GoToTabCommand}">
<KeyBinding Gesture="Ctrl+D8" Command="{Binding ActiveTabsListViewModel.GoToTabCommand}">
<KeyBinding.CommandParameter>
<system:Int32>7</system:Int32>
</KeyBinding.CommandParameter>
</KeyBinding>
<KeyBinding Gesture="Ctrl+D9" Command="{Binding GoToTabCommand}">
<KeyBinding Gesture="Ctrl+D9" Command="{Binding ActiveTabsListViewModel.GoToTabCommand}">
<KeyBinding.CommandParameter>
<system:Int32>8</system:Int32>
</KeyBinding.CommandParameter>
</KeyBinding>
<KeyBinding Gesture="Ctrl+D0" Command="{Binding GoToLastTabCommand}" />
<KeyBinding Gesture="Ctrl+NumPad1" Command="{Binding GoToTabCommand}">
<KeyBinding Gesture="Ctrl+NumPad1" Command="{Binding ActiveTabsListViewModel.GoToTabCommand}">
<KeyBinding.CommandParameter>
<system:Int32>0</system:Int32>
</KeyBinding.CommandParameter>
</KeyBinding>
<KeyBinding Gesture="Ctrl+NumPad2" Command="{Binding GoToTabCommand}">
<KeyBinding Gesture="Ctrl+NumPad2" Command="{Binding ActiveTabsListViewModel.GoToTabCommand}">
<KeyBinding.CommandParameter>
<system:Int32>1</system:Int32>
</KeyBinding.CommandParameter>
</KeyBinding>
<KeyBinding Gesture="Ctrl+NumPad3" Command="{Binding GoToTabCommand}">
<KeyBinding Gesture="Ctrl+NumPad3" Command="{Binding ActiveTabsListViewModel.GoToTabCommand}">
<KeyBinding.CommandParameter>
<system:Int32>2</system:Int32>
</KeyBinding.CommandParameter>
</KeyBinding>
<KeyBinding Gesture="Ctrl+NumPad4" Command="{Binding GoToTabCommand}">
<KeyBinding Gesture="Ctrl+NumPad4" Command="{Binding ActiveTabsListViewModel.GoToTabCommand}">
<KeyBinding.CommandParameter>
<system:Int32>3</system:Int32>
</KeyBinding.CommandParameter>
</KeyBinding>
<KeyBinding Gesture="Ctrl+NumPad5" Command="{Binding GoToTabCommand}">
<KeyBinding Gesture="Ctrl+NumPad5" Command="{Binding ActiveTabsListViewModel.GoToTabCommand}">
<KeyBinding.CommandParameter>
<system:Int32>4</system:Int32>
</KeyBinding.CommandParameter>
</KeyBinding>
<KeyBinding Gesture="Ctrl+NumPad6" Command="{Binding GoToTabCommand}">
<KeyBinding Gesture="Ctrl+NumPad6" Command="{Binding ActiveTabsListViewModel.GoToTabCommand}">
<KeyBinding.CommandParameter>
<system:Int32>5</system:Int32>
</KeyBinding.CommandParameter>
</KeyBinding>
<KeyBinding Gesture="Ctrl+NumPad7" Command="{Binding GoToTabCommand}">
<KeyBinding Gesture="Ctrl+NumPad7" Command="{Binding ActiveTabsListViewModel.GoToTabCommand}">
<KeyBinding.CommandParameter>
<system:Int32>6</system:Int32>
</KeyBinding.CommandParameter>
</KeyBinding>
<KeyBinding Gesture="Ctrl+NumPad8" Command="{Binding GoToTabCommand}">
<KeyBinding Gesture="Ctrl+NumPad8" Command="{Binding ActiveTabsListViewModel.GoToTabCommand}">
<KeyBinding.CommandParameter>
<system:Int32>7</system:Int32>
</KeyBinding.CommandParameter>
</KeyBinding>
<KeyBinding Gesture="Ctrl+NumPad9" Command="{Binding GoToTabCommand}">
<KeyBinding Gesture="Ctrl+NumPad9" Command="{Binding ActiveTabsListViewModel.GoToTabCommand}">
<KeyBinding.CommandParameter>
<system:Int32>8</system:Int32>
</KeyBinding.CommandParameter>
</KeyBinding>
<KeyBinding Gesture="Ctrl+D0" Command="{Binding ActiveTabsListViewModel.GoToLastTabCommand}" />
<KeyBinding Gesture="Ctrl+NumPad0" Command="{Binding ActiveTabsListViewModel.GoToLastTabCommand}" />
<KeyBinding Gesture="Ctrl+T" Command="{Binding ActiveTabsListViewModel.CreateNewTabCommand}" />
<KeyBinding Gesture="Meta+T" Command="{Binding ActiveTabsListViewModel.CreateNewTabCommand}" />
Expand Down

0 comments on commit 60c3dc2

Please sign in to comment.