babysmash icon indicating copy to clipboard operation
babysmash copied to clipboard

Options dialog opens on F4

Open bergziege opened this issue 3 years ago • 1 comments

... 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.

bergziege avatar Dec 05 '21 08:12 bergziege

(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.)

DavidRieman avatar May 30 '23 05:05 DavidRieman