My app uses tabs (buttons) to switch between different activities. One may wish to close a tab, and there are several ways to do that, including a main menu item which has cmd/ctrl-w as its shortcut.
Now on macOS/Linux, all these ways, including the shortcut, work as expected, but on Win-10, all work except the ctrl-w shortcut. If I use that one, then the app goes into a loop and may well get a StackOverflow exception (but not always). Even the debugger gets hosed and stepping through, I reach this statement:
MainWindow.MainPagePanel.SelectedPanelIndex = 1
at which the debugger gives up and goes blank.
All these various ways of closing a tab boil down to a call to the same method. It seems to me, therefore, that as the only difference is that a possibly common shortcut causes the problem, I wondered if it had any special extra meaning in WIndows (such as “Close the app’s window” or similar). Checking the main menu there is only the one instance of that shorrtcut, and I couldn’t see anything obvious in the Windows Settings.
Suggestions welcome.
6 posts - 4 participants