Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to distinguish between RCtrl and LCtrl
#1
Is there a way to trigger hotkeys only at right or left modifier keys (Ctrl / Win etc.)? 
I tried so far the following but the trigger is activated on right and also on left control key:
var hk = Triggers.Hotkey;
hk["RCtrl+Left"] = o => {
    print.it($"{o} was pressed.");
};
hk["RCtrl+Right"] = o => {
    print.it($"{o} was pressed.");
};
Could anyone give me a hint please?
#2
Code:
Copy      Help
hk["Ctrl+Left", TKFlags.RightMod] = o => {
    print.it($"{o} was pressed.");
};

hk["Ctrl+Right", TKFlags.RightMod] = o => {
    print.it($"{o} was pressed.");
};
#3
Thanks a lot for the quick solution Gintaras.


Forum Jump:


Users browsing this thread: 1 Guest(s)