I found an odd bug in XY.
Ordinarily, I can tap hotkeys as quickly as I want and XY always responds just fine. However, I discovered that the keyboard shortcut that brings up the Hotlist (Ctrl+H) doesn't work if Ctrl+H is pressed very quickly (power user speed-tap). The keys have to be held down for a fraction of a second longer in order for XY to respond and bring up the Hotlist. Otherwise, it just acts as if nothing was pressed.
However, trying this out with other commands, I don't have this problem. (I'm not saying no other command is affected, only that I haven't found any beyond the Hotlist command, yet.)
I tried out several versions (including the most recent beta), and this bug was present in all of them (the farthest back I could go was v11.10).
I'm very curious as to what the cause is for this bug.
KB shortcut for Hotlist doesn't work for fast presses
-
- Site Admin
- Posts: 60558
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: KB shortcut for Hotlist doesn't work for fast presses
This command is "Triggered on Key Up" (as you can see in | Customize Keyboard Shortcuts...). I think this is what causes your puzzlement.
Actually all commands that pop a menu are "Triggered on Key Up" -- this is because otherwise any accelerators in the menu would be triggered by the KeyUp event.
Actually all commands that pop a menu are "Triggered on Key Up" -- this is because otherwise any accelerators in the menu would be triggered by the KeyUp event.
FAQ | XY News RSS | XY Twitter
Re: KB shortcut for Hotlist doesn't work for fast presses
admin wrote:This command is "Triggered on Key Up" (as you can see in | Customize Keyboard Shortcuts...). I think this is what causes your puzzlement.
Actually all commands that pop a menu are "Triggered on Key Up" -- this is because otherwise any accelerators in the menu would be triggered by the KeyUp event.
Aha. With that information, I discovered that more specifically, if the Ctrl key is released before the H key, the command fails to execute. And that's more likely to happen on a fast keypress.
Is that standard for KeyUp events, generally, or is it an odd quirk of how XY processes them?
-
- Site Admin
- Posts: 60558
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: KB shortcut for Hotlist doesn't work for fast presses
Frankly, I don't know. But technically I see no way to change this, so I'd think it's the same everywhere.
FAQ | XY News RSS | XY Twitter
Re: KB shortcut for Hotlist doesn't work for fast presses
Fair enough. Thanks for clearing this up.admin wrote:Frankly, I don't know. But technically I see no way to change this, so I'd think it's the same everywhere.
Re: KB shortcut for Hotlist doesn't work for fast presses
FYI, if you really want it to work and don't mind the possibility of accidentally triggering items within the menu, then keep in mind that UDC allows you to assign shortcuts and control whether they trigger on key down or up.
- Remove the default Ctrl+H shortcut for Go | Hotlist....
- Create a new Run Script UDC that runs #530;.
- Assign that script the Ctrl+H shortcut.
Re: KB shortcut for Hotlist doesn't work for fast presses
Good to know. Thanks!