Get current key modifiers

Hi everyone,

It seems as an easy question, but cannot find the answer: how do you get
in Gjs (writing an extension) all the currently pressed/set key
modifiers (such as Ctrl, Shift keys and/or Caps-Lock etc.)? I know how
you get this in an event, but need to get it just in a method.

Also, would be interesting to know if there are different (more/less
reliable) ways to do this.

Thanks in advance,

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]