-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Glitchy behaviour after window loses focus. #89
Comments
This typically happens if you press CTRL-F2 instread of CTRL-2. The quickest way to recover is to press CTRL followed by F2 (not at the same time) |
Logged all the SDL events. There are no window events being received whatsoever when losing focus nor when regaining focus :( The logging shows our assumption was right: CTRL+F2 -> logged event 768 with keycode 400000E0 = CTRL down Focus shifted to system menu. ESC (while focus is on system menu) -> logged event 768 with keycode 4000003B = F2 down So both the CTRL up and F2 up are lost. Weird thing is that the F2 down event is received after regaining focus, but the F2 up that should come after that is lost... So a theory:
|
Probably won't be able to fix. Labeled it 'known issue'. |
Hi @Grrrolf. On macOS there shouldn't be a ctrl-f2 shortcut, it's mapped to Cmd+F2 like you suggest. The issue above occurs when you hit ctrl-f2 by accident. P.S. if you do a 'linux-style' build on macOS the mapping is ctrl-f2, so you do have this problem then. |
Are you saying that when I type make, it doesn't take the proper key combos for macOS? I'm more of a command line person than xcode. It's soo much easier to just type make app than even start xcode :-) |
The official release builds are built with make, I don't touch xcode at all :) If you build an App bundle, the mapping for "Play from cursor" should be Cmd+F2. Is your master up-to-date? Until recently there was a wrong mapping in master. By 'linux style' I mean building with the Makefile in the project root. An app built with the Makefile in /macos should have the Cmd+F2 mapping (Ctrl-F2 is not mapped to anything). Have you built an App bundle where 'Play from cursor' is not mapped to Cmd+F2? |
This reproduces it every time for me:
By now the cursor keys have stopped working. I can only move the cursor by clicking with the mouse.
Now things start flashing erraticly like broken fluorescent lights. The same behaviour as when I keep F2 pressed all the time. Pressing F2 stops this behaviour.
The text was updated successfully, but these errors were encountered: