Re: Get current key modifiers
- From: Rui Tiago Cação Matos <tiagomatos gmail com>
- To: Vadim <vadim dbfin com>
- Cc: Gnome-Shell List <gnome-shell-list gnome org>
- Subject: Re: Get current key modifiers
- Date: Fri, 29 Mar 2013 21:23:19 +0100
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]