Keys
Defined in: api/node/rust-module.d.cts:141
Keys represent a key combined with a list of modifiers (the keys type in the Slint language).
To construct a Keys instance from JavaScript, use the Keys.fromParts() method.
Use toString() to get a platform-native representation of the key binding
(e.g. “Ctrl+A” on Linux/Windows, “⌘A” on macOS).
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Keys():
Keys
Returns
Section titled “Returns”Keys
Methods
Section titled “Methods”equals()
Section titled “equals()”equals(
other):boolean
Defined in: api/node/rust-module.d.cts:151
Returns true if this key binding is equal to other.
Parameters
Section titled “Parameters”Keys
Returns
Section titled “Returns”boolean
toString()
Section titled “toString()”toString():
string
Defined in: api/node/rust-module.d.cts:149
Returns the platform-native string representation of this key binding.
Returns
Section titled “Returns”string
fromParts()
Section titled “fromParts()”
staticfromParts(parts):Keys
Defined in: api/node/rust-module.d.cts:147
Create a Keys from a list of string parts, e.g. ["Control", "Shift?", "Z"].
Each element is either a modifier name or a key name. Throws an error on parse failure.
Parameters
Section titled “Parameters”string[]
Returns
Section titled “Returns”Keys
© 2026 SixtyFPS GmbH