babysmash
babysmash copied to clipboard
Options dialog opens on F4
... and I am feeling really dumb for not beeing able to find the responsible code.
Branch: dotnet5 OS: Win11
Current behavior: Options dialog opens on key down F4
(and CTRL+ALT+SHIFT+O
of course)
Expected: Same behavior as the other F-Keys
Notes:
Stacktrace leads to MainWindow.g.i.cs
(((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Properties_Executed);
) which is on line 22 in MainWindow.xaml
which is a command binding but does not contains anything near F4
.
(Fixed this on my fork at https://github.com/DavidRieman/babysmash/commit/82faf40616f31683e7f919822de9c90b9d701c92. Well, at least mostly - I blocked F4 key so it doesn't make shapes but also doesn't open the options dialog on recent versions of Windows. I think they auto-map F4 to the Properties command.)