Re: Get current key modifiers



Thanks, man! This works perfectly!

Vadim.


On 03/29/2013 03:23 PM, Rui Tiago Cação Matos wrote:
On 29 March 2013 19:47, Vadim <vadim dbfin com> wrote:
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.
For gnome-shell you can do it like that:

https://git.gnome.org/browse/gnome-shell/tree/js/ui/switcherPopup.js#n153

Rui



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