Skip to content

Commit

Permalink
UI: Fixed keyboard focus being on menu when opening emulator via file…
Browse files Browse the repository at this point in the history
… associations
  • Loading branch information
SourMesen committed Nov 20, 2024
1 parent 919e14f commit cebdab9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion UI/Windows/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,10 @@ protected override void OnOpened(EventArgs e)
_timerBackgroundFlag.Interval = TimeSpan.FromMilliseconds(100);
_timerBackgroundFlag.Tick += timerUpdateBackgroundFlag;
_timerBackgroundFlag.Start();


//Force focus on window itself, to avoid menu being given focus by default
Focus();

Task.Run(() => {
CommandLineHelper cmdLine = new CommandLineHelper(Program.CommandLineArgs, true);
_cmdLine = cmdLine;
Expand Down

0 comments on commit cebdab9

Please sign in to comment.