The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




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?


Messages In This Thread
How to distinguish between RCtrl and LCtrl - by AutoStarter - 01-28-2024, 11:36 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)