fix(ui): bind search focus to Ctrl+K instead of OemQuestion

OemQuestion is the '#' key on a German layout, so the window-level binding both
swallowed '#' app-wide and left Ctrl+K dead — even though the search box already
advertises 'Ctrl K' as its shortcut.
This commit is contained in:
Mika Kuns
2026-07-27 15:02:50 +02:00
parent edd2774d86
commit 7f9f0ca128
+3 -2
View File
@@ -18,8 +18,9 @@
<converters:WorkerLogLevelToBrushConverter x:Key="WorkerLogLevelToBrush"/> <converters:WorkerLogLevelToBrushConverter x:Key="WorkerLogLevelToBrush"/>
</Window.Resources> </Window.Resources>
<Window.KeyBindings> <Window.KeyBindings>
<KeyBinding Gesture="OemQuestion" Command="{Binding FocusSearchCommand}"/> <!-- OemQuestion is the '#' key on a German layout: binding it here swallowed the
<KeyBinding Gesture="Shift+OemQuestion" Command="{Binding FocusSearchCommand}"/> character app-wide. Ctrl+K is what the search box advertises anyway. -->
<KeyBinding Gesture="Ctrl+K" Command="{Binding FocusSearchCommand}"/>
<KeyBinding Gesture="Ctrl+N" Command="{Binding FocusAddTaskCommand}"/> <KeyBinding Gesture="Ctrl+N" Command="{Binding FocusAddTaskCommand}"/>
</Window.KeyBindings> </Window.KeyBindings>
<Grid x:Name="RootGrid" RowDefinitions="36,*,22"> <Grid x:Name="RootGrid" RowDefinitions="36,*,22">