The following code doesn't always return the correct Insert key toggle state after switching between applications:
Code: Select all
MsgBox % GetKeyState("Insert", "T")
For instance, if I have two console windows, A & B, both initially with Insert mode turned off. Then I hit the Insert key while A is the active window. Now A is in Insert mode, while B remains in regular (non-insert) mode. Considering this is a per-window thing, what's the point of treating Insert as a toggle state?
Is there some sort of "global" insert state and applications are free to observe this state or keep their own internal state? CapsLock seems to work globally across all applications. Thanks!