Support Board
Date/Time: Sat, 25 Jan 2025 04:13:19 +0000
Post From: custom study control bar button keyboard shortcuts
[2019-02-01 16:30:05] |
dtl-saw - Posts: 79 |
thanks for the info on keyboardevents i'm using "sc.CharacterEventCode" successfully in my code example: if (sc.CharacterEventCode == 52) { do something } which does what it's supposed to correctly interpreting the numpad "4" key but when i try to use the modifier keys with this it doesn't work example: if (sc.CharacterEventCode == 52 && sc.IsKeyPressed_Control) { do something } there is no activation of the "do something" code so anding control key doesn't have the same result as when I and the sc.IsKeyPressed_Control key with button events. does this sound like correct behavior to you? do you have any examples of using a keyboard modifier key with a sc.CharacterEventCode? I've found the custom studies, scsf_ReceiveKeyboardEventsExample and scsf_KeyboardModifierStatesExample and both are helpful but don't help solve this issue. thanks |