c# - Key gesture with Ctrl+Numpad0 and Ctrl+Insert -


in c# application i'm working on, need create shortcut key command. shortcut key require ctrl+numpad0 (and/or ctrl+insert).

i have specific problem code: when numlock on, shortcut key of ctrl+numpad0 doesn't work. when numlock off, works fine.

i don't have full code , it's this:

public void registerzoomcommand() {     var mykeylist = new inputkeylist(); // don't remember full code here,                                         // input key list. thus, can add                                         // key gestures list in line after that.      mykeylist.add(new keygesture(key.numpad0, modifierkeys.ctrl);     mykeylist.add(new keygesture(key.insert, modifierkeys.ctrl);     // more code here register command , adding keygestures above. } 

as far understand, problem on regular keyboard numpad0 key insert key. thus, when numlock off, can use ctrl+numpad0. don't understand why doesn't work when numlock on.

i've read similar problems here use of ctrl+somekey, didn't find fix problem. ideas or can cause problem?

other questions read are: how detect numlock on/off status in wpf

keyboard event issue

numlock iskeylocked not working


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -