Menu

#241 modified arrow keys are passed to apps when changing desktops

v4.5
open
nobody
None
5
2017-03-08
2017-03-04
Steve Kelem
No

I use Ctrl-Alt-Arrow to change desktops. When I do this, one of the windows that is sensitive to the unmodified arrow keys is seeing those keystrokes and changing things.
The keys that change to a different desktop should not be passed to the windows.

The app that's affected is GWizard, a CAM feeds & speeds calculator. Changing the focus to another VirtuaWin desktop causes the feeds & speeds to spike.

Discussion

  • Johan Piculell

    Johan Piculell - 2017-03-06

    Hi. That sounds really odd, and it is really not much we can do about controlling what is passed were since hot key handling is under control by Windows. Are you saying that the app absobs they keystrokes or it messes up the application but VW still switches desktop?
    Not sure what causes the spikes, you can perhaps ask the app developers if they react badly on a hide window message. Or try changing the logic on this particiular app in VW from hide to move, might help.

     
  • Steve Kelem

    Steve Kelem - 2017-03-08

    The keystrokes are accepted by VW and the application, instead of being captured by only VW. I don't know the VW internals, but either Windows should send the keystroke to VW, or VW gets all the keystrokes. In either case, the "switch desktop" keys shouldn't be passed to any other applications.

     
  • Johan Piculell

    Johan Piculell - 2017-03-08

    Well we use this API: https://msdn.microsoft.com/en-us/library/windows/desktop/ms646309(v=vs.85).aspx

    And passing the VirtuaWin main window as argument so this applies:
    "A handle to the window that will receive WM_HOTKEY messages generated by the hot key."

    If another application had this hot key, VirtuaWin registration would fail. And only VirtuaWin should receive the hot key message per windows API docs and we do consume the hot key message in the main loop and does not pass it on fromn what I can see in the code now. This has been like this for at least 11 years now actually.
    Only think I can think of right now is some windows bug, but probably does not sound very likely. Is this the only application you notice this problem with? And if you shut down VirtuaWin, does the hot key do anything useful in your application?

     
  • Steve Kelem

    Steve Kelem - 2017-03-08

    The application accepts the arrow keys with and without the ctrl and alt modifiers and treats them the same if the modifiers were not there.

     

Log in to post a comment.