-
Cast constructor, converting any binary integer to a
ModifierIntent
.Declaration
Swift
@inlinable init!<I>(_ raw: I) where I : BinaryInteger
Parameters
raw
The raw integer value to initialise the enum from
-
the primary modifier used to invoke menu accelerators.
Declaration
Swift
static let primaryAccelerator: GdkModifierIntent
-
the modifier used to invoke context menus. Note that mouse button 3 always triggers context menus. When this modifier is not 0, it additionally triggers context menus when used with mouse button 1.
Declaration
Swift
static let contextMenu: GdkModifierIntent
-
the modifier used to extend selections using
modifier
-click ormodifier
-cursor-keyDeclaration
Swift
static let extendSelection: GdkModifierIntent
-
the modifier used to modify selections, which in most cases means toggling the clicked item into or out of the selection.
Declaration
Swift
static let modifySelection: GdkModifierIntent
-
when any of these modifiers is pressed, the key event cannot produce a symbol directly. This is meant to be used for input methods, and for use cases like typeahead search.
Declaration
Swift
static let noTextInput: GdkModifierIntent
-
the modifier that switches between keyboard groups (AltGr on X11/Windows and Option/Alt on OS X).
Declaration
Swift
static let shiftGroup: GdkModifierIntent
-
The set of modifier masks accepted as modifiers in accelerators. Needed because Command is mapped to MOD2 on OSX, which is widely used, but on X11 MOD2 is NumLock and using that for a mod key is problematic at best. Ref: https://bugzilla.gnome.org/show_bug.cgi?id=736125.
Declaration
Swift
static let defaultModMask: GdkModifierIntent