Device
Class
constructor
parent_
class
name
add_
key_
grab
get_
locked_
modifiers
get_
modifier
grab_
keyboard
map_
modifier
remove_
key_
grab
ungrab_
keyboard
unmap_
modifier
GJS API Reference
Atspi-2.0
Atspi
DeviceClass
Class DeviceClass
Hierarchy
DeviceClass
Index
Constructors
constructor
Properties
parent_
class
name
Methods
add_
key_
grab
get_
locked_
modifiers
get_
modifier
grab_
keyboard
map_
modifier
remove_
key_
grab
ungrab_
keyboard
unmap_
modifier
Constructors
constructor
new
Device
Class
(
)
:
Atspi
.
DeviceClass
Returns
Atspi
.
DeviceClass
Properties
parent_
class
parent_
class
:
GObject
.
ObjectClass
Static
name
name
:
string
Methods
add_
key_
grab
add_
key_
grab
(
device
:
Atspi
.
Device
, kd
:
KeyDefinition
)
:
void
Parameters
device:
Atspi
.
Device
kd:
KeyDefinition
Returns
void
get_
locked_
modifiers
get_
locked_
modifiers
(
device
:
Atspi
.
Device
)
:
number
Parameters
device:
Atspi
.
Device
Returns
number
get_
modifier
get_
modifier
(
device
:
Atspi
.
Device
, keycode
:
number
)
:
number
Parameters
device:
Atspi
.
Device
keycode:
number
Returns
number
grab_
keyboard
grab_
keyboard
(
device
:
Atspi
.
Device
)
:
boolean
Parameters
device:
Atspi
.
Device
Returns
boolean
map_
modifier
map_
modifier
(
device
:
Atspi
.
Device
, keycode
:
number
)
:
number
Parameters
device:
Atspi
.
Device
keycode:
number
Returns
number
remove_
key_
grab
remove_
key_
grab
(
device
:
Atspi
.
Device
, id
:
number
)
:
void
Parameters
device:
Atspi
.
Device
id:
number
Returns
void
ungrab_
keyboard
ungrab_
keyboard
(
device
:
Atspi
.
Device
)
:
void
Parameters
device:
Atspi
.
Device
Returns
void
unmap_
modifier
unmap_
modifier
(
device
:
Atspi
.
Device
, keycode
:
number
)
:
void
Parameters
device:
Atspi
.
Device
keycode:
number
Returns
void
Device
Class
constructor
parent_
class
name
add_
key_
grab
get_
locked_
modifiers
get_
modifier
grab_
keyboard
map_
modifier
remove_
key_
grab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