Support Board
Date/Time: Fri, 27 Dec 2024 01:30:47 +0000
Post From: Changing symbols from chart does not ignore hotkeys
[2016-03-12 01:11:15] |
i960 - Posts: 360 |
Also, if we were to support this, which is impossible, and a keyboard shortcuts get disabled when someone mistakenly types a letter into a chart, this is not going to be something that is desirable to them.
That's easy though - they just hit escape and they know they're back to normal. I'm not asking for it so somehow magically know I'm typing in a symbol at all times but instead to just ignore hotkeys when specifically in "input" mode aka '/'. The OS is not taking over hotkey control for SierraChart entirely - they are simply keyboard hooks set by SC which call SC defined callbacks, e.g. SetWindowsHookEx() w/ the KeyboardProc callback type. Just have the callbacks check an input state variable and return early if it's set (and said variable would be set if a user types '/' in a chart). Otherwise process the keyboard hook as normal. Along the lines of http://stackoverflow.com/questions/828134/disabling-keys-using-windows-hooks Date Time Of Last Edit: 2016-03-12 01:11:48
|