How do I find where keypresses are going when no control has focus? I have been using the window Keydown event successfully but suddenly it doesn’t work. This happens after I use a different window to open a file. When I return from it to my main window, focus is lost and the only way to get it back is to click somewhere on it. Then the Keydown event starts working again.
I’m using Windows 10 with latest iteration of Xojo (up to Oct): 2024 r3.
Edit update: Actually, I just discovered I lose Keydown events even when a control (like a listbox) on the window has focus IF I have double-clicked a file to open. I press the keys and nothing happens.
Edit 2: Whenever I break the program and check my main window, it ALWAYS says the Focus is Nil, even if I’ve just clicked on it. I don’t get it.
2 posts - 2 participants