File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ public MainWindow(object data)
49
49
protected override void OnKeyDown ( KeyEventArgs e )
50
50
{
51
51
base . OnKeyDown ( e ) ;
52
+
52
53
// focus on searchbar if typed a character
53
54
if ( e . KeyModifiers is KeyModifiers . None or KeyModifiers . Shift && ( int ) e . Key >= ( int ) Key . A && ( int ) e . Key <= ( int ) Key . Z )
54
55
{
@@ -258,11 +259,7 @@ public static void MoveSelectedProjectDown()
258
259
Content = "🔍" ,
259
260
HorizontalAlignment = HorizontalAlignment . Right ,
260
261
} ,
261
- } . OnSubmit ( u =>
262
- {
263
- u . unityProject . OpenProject ( ) ;
264
- return ;
265
- } ) . SetDock ( Dock . Top ) ,
262
+ } . OnSubmit ( static u => u . unityProject . OpenProject ( ) ) . SetDock ( Dock . Top ) ,
266
263
new DockPanel
267
264
{
268
265
Margin = new ( 0 , 10 )
@@ -540,7 +537,7 @@ public static MenuItem[] CreateProjectMenuItems(Func<UnityProject> unityProjectG
540
537
new MenuItem
541
538
{
542
539
Header = "Open" ,
543
- HotKey = new ( Key . Enter ) ,
540
+ // HotKey = new(Key.Enter),
544
541
InputGesture = new ( Key . Enter ) ,
545
542
} . OnLayoutUpdate ( ( item ) => item . IsEnabled = unityProjectGetter ( ) ? . unity . HasValue == true )
546
543
. OnClick ( OpenSelectedProject ) ,
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class SubmitableListBox : ListBox
26
26
protected override void OnPointerReleased ( PointerReleasedEventArgs e )
27
27
{
28
28
base . OnPointerReleased ( e ) ;
29
- if ( e . InitialPressMouseButton == MouseButton . Left )
29
+ if ( ! e . Handled && e . InitialPressMouseButton == MouseButton . Left )
30
30
{
31
31
OnSubmit ? . Invoke ( ) ;
32
32
e . Handled = true ;
You can’t perform that action at this time.
0 commit comments