PopupMenu

package
v0.0.0-...-80877a9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package PopupMenu provides methods for working with PopupMenu object instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advanced

type Advanced = class

Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.

type Any

type Any interface {
	gd.IsClass
	AsPopupMenu() Instance
}

type Instance

type Instance [1]gdclass.PopupMenu

[PopupMenu] is a modal window used to display a list of options. Useful for toolbars and context menus. The size of a [PopupMenu] can be limited by using [member Window.max_size]. If the height of the list of items is larger than the maximum height of the [PopupMenu], a [ScrollContainer] within the popup will allow the user to scroll the contents. If no maximum size is set, or if it is set to [code]0[/code], the [PopupMenu] height will be limited by its parent rect. All [code]set_*[/code] methods allow negative item indices, i.e. [code]-1[/code] to access the last item, [code]-2[/code] to select the second-to-last item, and so on. [b]Incremental search:[/b] Like [ItemList] and [Tree], [PopupMenu] supports searching within the list while the control is focused. Press a key that matches the first letter of an item's name to select the first item starting with the given letter. After that point, there are two ways to perform incremental search: 1) Press the same key again before the timeout duration to select the next item starting with the same letter. 2) Press letter keys that match the rest of the word before the timeout duration to match to select the item in question directly. Both of these actions will be reset to the beginning of the list if the timeout duration has passed since the last keystroke was registered. You can adjust the timeout duration by changing [member ProjectSettings.gui/timers/incremental_search_max_interval_msec]. [b]Note:[/b] The ID values used for items are limited to 32 bits, not full 64 bits of [int]. This has a range of [code]-2^32[/code] to [code]2^32 - 1[/code], i.e. [code]-2147483648[/code] to [code]2147483647[/code].

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) ActivateItemByEvent

func (self Instance) ActivateItemByEvent(event [1]gdclass.InputEvent) bool

Checks the provided [param event] against the [PopupMenu]'s shortcuts and accelerators, and activates the first item with matching events. If [param for_global_only] is [code]true[/code], only shortcuts and accelerators with [code]global[/code] set to [code]true[/code] will be called. Returns [code]true[/code] if an item was successfully activated. [b]Note:[/b] Certain [Control]s, such as [MenuButton], will call this method automatically.

func (Instance) AddCheckItem

func (self Instance) AddCheckItem(label string)

Adds a new checkable item with text [param label]. An [param id] can optionally be provided, as well as an accelerator ([param accel]). If no [param id] is provided, one will be created from the index. If no [param accel] is provided, then the default value of 0 (corresponding to [constant @GlobalScope.KEY_NONE]) will be assigned to the item (which means it won't have any accelerator). See [method get_item_accelerator] for more info on accelerators. [b]Note:[/b] Checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. See [method set_item_checked] for more info on how to control it.

func (Instance) AddCheckShortcut

func (self Instance) AddCheckShortcut(shortcut [1]gdclass.Shortcut)

Adds a new checkable item and assigns the specified [Shortcut] to it. Sets the label of the checkbox to the [Shortcut]'s name. An [param id] can optionally be provided. If no [param id] is provided, one will be created from the index. [b]Note:[/b] Checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. See [method set_item_checked] for more info on how to control it.

func (Instance) AddIconCheckItem

func (self Instance) AddIconCheckItem(texture [1]gdclass.Texture2D, label string)

Adds a new checkable item with text [param label] and icon [param texture]. An [param id] can optionally be provided, as well as an accelerator ([param accel]). If no [param id] is provided, one will be created from the index. If no [param accel] is provided, then the default value of 0 (corresponding to [constant @GlobalScope.KEY_NONE]) will be assigned to the item (which means it won't have any accelerator). See [method get_item_accelerator] for more info on accelerators. [b]Note:[/b] Checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. See [method set_item_checked] for more info on how to control it.

func (Instance) AddIconCheckShortcut

func (self Instance) AddIconCheckShortcut(texture [1]gdclass.Texture2D, shortcut [1]gdclass.Shortcut)

Adds a new checkable item and assigns the specified [Shortcut] and icon [param texture] to it. Sets the label of the checkbox to the [Shortcut]'s name. An [param id] can optionally be provided. If no [param id] is provided, one will be created from the index. [b]Note:[/b] Checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. See [method set_item_checked] for more info on how to control it.

func (Instance) AddIconItem

func (self Instance) AddIconItem(texture [1]gdclass.Texture2D, label string)

Adds a new item with text [param label] and icon [param texture]. An [param id] can optionally be provided, as well as an accelerator ([param accel]). If no [param id] is provided, one will be created from the index. If no [param accel] is provided, then the default value of 0 (corresponding to [constant @GlobalScope.KEY_NONE]) will be assigned to the item (which means it won't have any accelerator). See [method get_item_accelerator] for more info on accelerators.

func (Instance) AddIconRadioCheckItem

func (self Instance) AddIconRadioCheckItem(texture [1]gdclass.Texture2D, label string)

Same as [method add_icon_check_item], but uses a radio check button.

func (Instance) AddIconRadioCheckShortcut

func (self Instance) AddIconRadioCheckShortcut(texture [1]gdclass.Texture2D, shortcut [1]gdclass.Shortcut)

Same as [method add_icon_check_shortcut], but uses a radio check button.

func (Instance) AddIconShortcut

func (self Instance) AddIconShortcut(texture [1]gdclass.Texture2D, shortcut [1]gdclass.Shortcut)

Adds a new item and assigns the specified [Shortcut] and icon [param texture] to it. Sets the label of the checkbox to the [Shortcut]'s name. An [param id] can optionally be provided. If no [param id] is provided, one will be created from the index. If [param allow_echo] is [code]true[/code], the shortcut can be activated with echo events.

func (Instance) AddItem

func (self Instance) AddItem(label string)

Adds a new item with text [param label]. An [param id] can optionally be provided, as well as an accelerator ([param accel]). If no [param id] is provided, one will be created from the index. If no [param accel] is provided, then the default value of 0 (corresponding to [constant @GlobalScope.KEY_NONE]) will be assigned to the item (which means it won't have any accelerator). See [method get_item_accelerator] for more info on accelerators. [b]Note:[/b] The provided [param id] is used only in [signal id_pressed] and [signal id_focused] signals. It's not related to the [code]index[/code] arguments in e.g. [method set_item_checked].

func (Instance) AddMultistateItem

func (self Instance) AddMultistateItem(label string, max_states int)

Adds a new multistate item with text [param label]. Contrarily to normal binary items, multistate items can have more than two states, as defined by [param max_states]. The default value is defined by [param default_state]. An [param id] can optionally be provided, as well as an accelerator ([param accel]). If no [param id] is provided, one will be created from the index. If no [param accel] is provided, then the default value of 0 (corresponding to [constant @GlobalScope.KEY_NONE]) will be assigned to the item (which means it won't have any accelerator). See [method get_item_accelerator] for more info on accelerators. [b]Note:[/b] Multistate items don't update their state automatically and must be done manually. See [method toggle_item_multistate], [method set_item_multistate] and [method get_item_multistate] for more info on how to control it. Example usage: [codeblock] func _ready():

add_multistate_item("Item", 3, 0)

index_pressed.connect(func(index: int):
        toggle_item_multistate(index)
        match get_item_multistate(index):
            0:
                print("First state")
            1:
                print("Second state")
            2:
                print("Third state")
    )

[/codeblock]

func (Instance) AddRadioCheckItem

func (self Instance) AddRadioCheckItem(label string)

Adds a new radio check button with text [param label]. An [param id] can optionally be provided, as well as an accelerator ([param accel]). If no [param id] is provided, one will be created from the index. If no [param accel] is provided, then the default value of 0 (corresponding to [constant @GlobalScope.KEY_NONE]) will be assigned to the item (which means it won't have any accelerator). See [method get_item_accelerator] for more info on accelerators. [b]Note:[/b] Checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. See [method set_item_checked] for more info on how to control it.

func (Instance) AddRadioCheckShortcut

func (self Instance) AddRadioCheckShortcut(shortcut [1]gdclass.Shortcut)

Adds a new radio check button and assigns a [Shortcut] to it. Sets the label of the checkbox to the [Shortcut]'s name. An [param id] can optionally be provided. If no [param id] is provided, one will be created from the index. [b]Note:[/b] Checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. See [method set_item_checked] for more info on how to control it.

func (Instance) AddSeparator

func (self Instance) AddSeparator()

Adds a separator between items. Separators also occupy an index, which you can set by using the [param id] parameter. A [param label] can optionally be provided, which will appear at the center of the separator.

func (Instance) AddShortcut

func (self Instance) AddShortcut(shortcut [1]gdclass.Shortcut)

Adds a [Shortcut]. An [param id] can optionally be provided. If no [param id] is provided, one will be created from the index. If [param allow_echo] is [code]true[/code], the shortcut can be activated with echo events.

func (Instance) AddSubmenuItem

func (self Instance) AddSubmenuItem(label string, submenu string)

Adds an item that will act as a submenu of the parent [PopupMenu] node when clicked. The [param submenu] argument must be the name of an existing [PopupMenu] that has been added as a child to this node. This submenu will be shown when the item is clicked, hovered for long enough, or activated using the [code]ui_select[/code] or [code]ui_right[/code] input actions. An [param id] can optionally be provided. If no [param id] is provided, one will be created from the index.

func (Instance) AddSubmenuNodeItem

func (self Instance) AddSubmenuNodeItem(label string, submenu [1]gdclass.PopupMenu)

Adds an item that will act as a submenu of the parent [PopupMenu] node when clicked. This submenu will be shown when the item is clicked, hovered for long enough, or activated using the [code]ui_select[/code] or [code]ui_right[/code] input actions. [param submenu] must be either child of this [PopupMenu] or has no parent node (in which case it will be automatically added as a child). If the [param submenu] popup has another parent, this method will fail. An [param id] can optionally be provided. If no [param id] is provided, one will be created from the index.

func (Instance) AllowSearch

func (self Instance) AllowSearch() bool

func (Instance) AsNode

func (self Instance) AsNode() Node.Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsPopup

func (self Instance) AsPopup() Popup.Instance

func (Instance) AsPopupMenu

func (self Instance) AsPopupMenu() Instance

func (Instance) AsViewport

func (self Instance) AsViewport() Viewport.Instance

func (Instance) AsWindow

func (self Instance) AsWindow() Window.Instance

func (Instance) Clear

func (self Instance) Clear()

Removes all items from the [PopupMenu]. If [param free_submenus] is [code]true[/code], the submenu nodes are automatically freed.

func (Instance) GetFocusedItem

func (self Instance) GetFocusedItem() int

Returns the index of the currently focused item. Returns [code]-1[/code] if no item is focused.

func (Instance) GetItemAccelerator

func (self Instance) GetItemAccelerator(index int) Key

Returns the accelerator of the item at the given [param index]. An accelerator is a keyboard shortcut that can be pressed to trigger the menu button even if it's not currently open. The return value is an integer which is generally a combination of [enum KeyModifierMask]s and [enum Key]s using bitwise OR such as [code]KEY_MASK_CTRL | KEY_A[/code] ([kbd]Ctrl + A[/kbd]). If no accelerator is defined for the specified [param index], [method get_item_accelerator] returns [code]0[/code] (corresponding to [constant @GlobalScope.KEY_NONE]).

func (Instance) GetItemIcon

func (self Instance) GetItemIcon(index int) [1]gdclass.Texture2D

Returns the icon of the item at the given [param index].

func (Instance) GetItemIconMaxWidth

func (self Instance) GetItemIconMaxWidth(index int) int

Returns the maximum allowed width of the icon for the item at the given [param index].

func (Instance) GetItemIconModulate

func (self Instance) GetItemIconModulate(index int) Color.RGBA

Returns a [Color] modulating the item's icon at the given [param index].

func (Instance) GetItemId

func (self Instance) GetItemId(index int) int

Returns the ID of the item at the given [param index]. [code]id[/code] can be manually assigned, while index can not.

func (Instance) GetItemIndent

func (self Instance) GetItemIndent(index int) int

Returns the horizontal offset of the item at the given [param index].

func (Instance) GetItemIndex

func (self Instance) GetItemIndex(id int) int

Returns the index of the item containing the specified [param id]. Index is automatically assigned to each item by the engine and can not be set manually.

func (Instance) GetItemLanguage

func (self Instance) GetItemLanguage(index int) string

Returns item's text language code.

func (Instance) GetItemMetadata

func (self Instance) GetItemMetadata(index int) any

Returns the metadata of the specified item, which might be of any type. You can set it with [method set_item_metadata], which provides a simple way of assigning context data to items.

func (Instance) GetItemMultistate

func (self Instance) GetItemMultistate(index int) int

Returns the state of the item at the given [param index].

func (Instance) GetItemMultistateMax

func (self Instance) GetItemMultistateMax(index int) int

Returns the max states of the item at the given [param index].

func (Instance) GetItemShortcut

func (self Instance) GetItemShortcut(index int) [1]gdclass.Shortcut

Returns the [Shortcut] associated with the item at the given [param index].

func (Instance) GetItemSubmenu

func (self Instance) GetItemSubmenu(index int) string

Returns the submenu name of the item at the given [param index]. See [method add_submenu_item] for more info on how to add a submenu.

func (Instance) GetItemSubmenuNode

func (self Instance) GetItemSubmenuNode(index int) [1]gdclass.PopupMenu

Returns the submenu of the item at the given [param index], or [code]null[/code] if no submenu was added. See [method add_submenu_node_item] for more info on how to add a submenu.

func (Instance) GetItemText

func (self Instance) GetItemText(index int) string

Returns the text of the item at the given [param index].

func (Instance) GetItemTextDirection

func (self Instance) GetItemTextDirection(index int) gdclass.ControlTextDirection

Returns item's text base writing direction.

func (Instance) GetItemTooltip

func (self Instance) GetItemTooltip(index int) string

Returns the tooltip associated with the item at the given [param index].

func (Instance) HideOnCheckableItemSelection

func (self Instance) HideOnCheckableItemSelection() bool

func (Instance) HideOnItemSelection

func (self Instance) HideOnItemSelection() bool

func (Instance) HideOnStateItemSelection

func (self Instance) HideOnStateItemSelection() bool

func (Instance) IsItemCheckable

func (self Instance) IsItemCheckable(index int) bool

Returns [code]true[/code] if the item at the given [param index] is checkable in some way, i.e. if it has a checkbox or radio button. [b]Note:[/b] Checkable items just display a checkmark or radio button, but don't have any built-in checking behavior and must be checked/unchecked manually.

func (Instance) IsItemChecked

func (self Instance) IsItemChecked(index int) bool

Returns [code]true[/code] if the item at the given [param index] is checked.

func (Instance) IsItemDisabled

func (self Instance) IsItemDisabled(index int) bool

Returns [code]true[/code] if the item at the given [param index] is disabled. When it is disabled it can't be selected, or its action invoked. See [method set_item_disabled] for more info on how to disable an item.

func (Instance) IsItemRadioCheckable

func (self Instance) IsItemRadioCheckable(index int) bool

Returns [code]true[/code] if the item at the given [param index] has radio button-style checkability. [b]Note:[/b] This is purely cosmetic; you must add the logic for checking/unchecking items in radio groups.

func (Instance) IsItemSeparator

func (self Instance) IsItemSeparator(index int) bool

Returns [code]true[/code] if the item is a separator. If it is, it will be displayed as a line. See [method add_separator] for more info on how to add a separator.

func (Instance) IsItemShortcutDisabled

func (self Instance) IsItemShortcutDisabled(index int) bool

Returns [code]true[/code] if the specified item's shortcut is disabled.

func (Instance) IsNativeMenu

func (self Instance) IsNativeMenu() bool

Returns [code]true[/code] if the system native menu is supported and currently used by this [PopupMenu].

func (Instance) IsSystemMenu

func (self Instance) IsSystemMenu() bool

Returns [code]true[/code] if the menu is bound to the special system menu.

func (Instance) ItemCount

func (self Instance) ItemCount() int

func (Instance) OnIdFocused

func (self Instance) OnIdFocused(cb func(id int))

func (Instance) OnIdPressed

func (self Instance) OnIdPressed(cb func(id int))

func (Instance) OnIndexPressed

func (self Instance) OnIndexPressed(cb func(index int))

func (Instance) OnMenuChanged

func (self Instance) OnMenuChanged(cb func())

func (Instance) PreferNativeMenu

func (self Instance) PreferNativeMenu() bool

func (Instance) RemoveItem

func (self Instance) RemoveItem(index int)

Removes the item at the given [param index] from the menu. [b]Note:[/b] The indices of items after the removed item will be shifted by one.

func (Instance) ScrollToItem

func (self Instance) ScrollToItem(index int)

Moves the scroll view to make the item at the given [param index] visible.

func (Instance) SetAllowSearch

func (self Instance) SetAllowSearch(value bool)

func (Instance) SetFocusedItem

func (self Instance) SetFocusedItem(index int)

Sets the currently focused item as the given [param index]. Passing [code]-1[/code] as the index makes so that no item is focused.

func (Instance) SetHideOnCheckableItemSelection

func (self Instance) SetHideOnCheckableItemSelection(value bool)

func (Instance) SetHideOnItemSelection

func (self Instance) SetHideOnItemSelection(value bool)

func (Instance) SetHideOnStateItemSelection

func (self Instance) SetHideOnStateItemSelection(value bool)

func (Instance) SetItemAccelerator

func (self Instance) SetItemAccelerator(index int, accel Key)

Sets the accelerator of the item at the given [param index]. An accelerator is a keyboard shortcut that can be pressed to trigger the menu button even if it's not currently open. [param accel] is generally a combination of [enum KeyModifierMask]s and [enum Key]s using bitwise OR such as [code]KEY_MASK_CTRL | KEY_A[/code] ([kbd]Ctrl + A[/kbd]).

func (Instance) SetItemAsCheckable

func (self Instance) SetItemAsCheckable(index int, enable bool)

Sets whether the item at the given [param index] has a checkbox. If [code]false[/code], sets the type of the item to plain text. [b]Note:[/b] Checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually.

func (Instance) SetItemAsRadioCheckable

func (self Instance) SetItemAsRadioCheckable(index int, enable bool)

Sets the type of the item at the given [param index] to radio button. If [code]false[/code], sets the type of the item to plain text.

func (Instance) SetItemAsSeparator

func (self Instance) SetItemAsSeparator(index int, enable bool)

Mark the item at the given [param index] as a separator, which means that it would be displayed as a line. If [code]false[/code], sets the type of the item to plain text.

func (Instance) SetItemChecked

func (self Instance) SetItemChecked(index int, checked bool)

Sets the checkstate status of the item at the given [param index].

func (Instance) SetItemCount

func (self Instance) SetItemCount(value int)

func (Instance) SetItemDisabled

func (self Instance) SetItemDisabled(index int, disabled bool)

Enables/disables the item at the given [param index]. When it is disabled, it can't be selected and its action can't be invoked.

func (Instance) SetItemIcon

func (self Instance) SetItemIcon(index int, icon [1]gdclass.Texture2D)

Replaces the [Texture2D] icon of the item at the given [param index].

func (Instance) SetItemIconMaxWidth

func (self Instance) SetItemIconMaxWidth(index int, width int)

Sets the maximum allowed width of the icon for the item at the given [param index]. This limit is applied on top of the default size of the icon and on top of [theme_item icon_max_width]. The height is adjusted according to the icon's ratio.

func (Instance) SetItemIconModulate

func (self Instance) SetItemIconModulate(index int, modulate Color.RGBA)

Sets a modulating [Color] of the item's icon at the given [param index].

func (Instance) SetItemId

func (self Instance) SetItemId(index int, id int)

Sets the [param id] of the item at the given [param index]. The [param id] is used in [signal id_pressed] and [signal id_focused] signals.

func (Instance) SetItemIndent

func (self Instance) SetItemIndent(index int, indent int)

Sets the horizontal offset of the item at the given [param index].

func (Instance) SetItemLanguage

func (self Instance) SetItemLanguage(index int, language string)

Sets language code of item's text used for line-breaking and text shaping algorithms, if left empty current locale is used instead.

func (Instance) SetItemMetadata

func (self Instance) SetItemMetadata(index int, metadata any)

Sets the metadata of an item, which may be of any type. You can later get it with [method get_item_metadata], which provides a simple way of assigning context data to items.

func (Instance) SetItemMultistate

func (self Instance) SetItemMultistate(index int, state int)

Sets the state of a multistate item. See [method add_multistate_item] for details.

func (Instance) SetItemMultistateMax

func (self Instance) SetItemMultistateMax(index int, max_states int)

Sets the max states of a multistate item. See [method add_multistate_item] for details.

func (Instance) SetItemShortcut

func (self Instance) SetItemShortcut(index int, shortcut [1]gdclass.Shortcut)

Sets a [Shortcut] for the item at the given [param index].

func (Instance) SetItemShortcutDisabled

func (self Instance) SetItemShortcutDisabled(index int, disabled bool)

Disables the [Shortcut] of the item at the given [param index].

func (Instance) SetItemSubmenu

func (self Instance) SetItemSubmenu(index int, submenu string)

Sets the submenu of the item at the given [param index]. The submenu is the name of a child [PopupMenu] node that would be shown when the item is clicked.

func (Instance) SetItemSubmenuNode

func (self Instance) SetItemSubmenuNode(index int, submenu [1]gdclass.PopupMenu)

Sets the submenu of the item at the given [param index]. The submenu is a [PopupMenu] node that would be shown when the item is clicked. It must either be a child of this [PopupMenu] or has no parent (in which case it will be automatically added as a child). If the [param submenu] popup has another parent, this method will fail.

func (Instance) SetItemText

func (self Instance) SetItemText(index int, text string)

Sets the text of the item at the given [param index].

func (Instance) SetItemTextDirection

func (self Instance) SetItemTextDirection(index int, direction gdclass.ControlTextDirection)

Sets item's text base writing direction.

func (Instance) SetItemTooltip

func (self Instance) SetItemTooltip(index int, tooltip string)

Sets the [String] tooltip of the item at the given [param index].

func (Instance) SetPreferNativeMenu

func (self Instance) SetPreferNativeMenu(value bool)

func (Instance) SetSubmenuPopupDelay

func (self Instance) SetSubmenuPopupDelay(value Float.X)

func (Instance) SetSystemMenuId

func (self Instance) SetSystemMenuId(value gdclass.NativeMenuSystemMenus)

func (Instance) SubmenuPopupDelay

func (self Instance) SubmenuPopupDelay() Float.X

func (Instance) SystemMenuId

func (self Instance) SystemMenuId() gdclass.NativeMenuSystemMenus

func (Instance) ToggleItemChecked

func (self Instance) ToggleItemChecked(index int)

Toggles the check state of the item at the given [param index].

func (Instance) ToggleItemMultistate

func (self Instance) ToggleItemMultistate(index int)

Cycle to the next state of a multistate item. See [method add_multistate_item] for details.

func (*Instance) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

type Key

type Key int
const (
	/*Enum value which doesn't correspond to any key. This is used to initialize [enum Key] properties with a generic state.*/
	KeyNone Key = 0
	/*Keycodes with this bit applied are non-printable.*/
	KeySpecial Key = 4194304
	/*Escape key.*/
	KeyEscape Key = 4194305
	/*Tab key.*/
	KeyTab Key = 4194306
	/*Shift + Tab key.*/
	KeyBacktab Key = 4194307
	/*Backspace key.*/
	KeyBackspace Key = 4194308
	/*Return key (on the main keyboard).*/
	KeyEnter Key = 4194309
	/*Enter key on the numeric keypad.*/
	KeyKpEnter Key = 4194310
	/*Insert key.*/
	KeyInsert Key = 4194311
	/*Delete key.*/
	KeyDelete Key = 4194312
	/*Pause key.*/
	KeyPause Key = 4194313
	/*Print Screen key.*/
	KeyPrint Key = 4194314
	/*System Request key.*/
	KeySysreq Key = 4194315
	/*Clear key.*/
	KeyClear Key = 4194316
	/*Home key.*/
	KeyHome Key = 4194317
	/*End key.*/
	KeyEnd Key = 4194318
	/*Left arrow key.*/
	KeyLeft Key = 4194319
	/*Up arrow key.*/
	KeyUp Key = 4194320
	/*Right arrow key.*/
	KeyRight Key = 4194321
	/*Down arrow key.*/
	KeyDown Key = 4194322
	/*Page Up key.*/
	KeyPageup Key = 4194323
	/*Page Down key.*/
	KeyPagedown Key = 4194324
	/*Shift key.*/
	KeyShift Key = 4194325
	/*Control key.*/
	KeyCtrl Key = 4194326
	/*Meta key.*/
	KeyMeta Key = 4194327
	/*Alt key.*/
	KeyAlt Key = 4194328
	/*Caps Lock key.*/
	KeyCapslock Key = 4194329
	/*Num Lock key.*/
	KeyNumlock Key = 4194330
	/*Scroll Lock key.*/
	KeyScrolllock Key = 4194331
	/*F1 key.*/
	KeyF1 Key = 4194332
	/*F2 key.*/
	KeyF2 Key = 4194333
	/*F3 key.*/
	KeyF3 Key = 4194334
	/*F4 key.*/
	KeyF4 Key = 4194335
	/*F5 key.*/
	KeyF5 Key = 4194336
	/*F6 key.*/
	KeyF6 Key = 4194337
	/*F7 key.*/
	KeyF7 Key = 4194338
	/*F8 key.*/
	KeyF8 Key = 4194339
	/*F9 key.*/
	KeyF9 Key = 4194340
	/*F10 key.*/
	KeyF10 Key = 4194341
	/*F11 key.*/
	KeyF11 Key = 4194342
	/*F12 key.*/
	KeyF12 Key = 4194343
	/*F13 key.*/
	KeyF13 Key = 4194344
	/*F14 key.*/
	KeyF14 Key = 4194345
	/*F15 key.*/
	KeyF15 Key = 4194346
	/*F16 key.*/
	KeyF16 Key = 4194347
	/*F17 key.*/
	KeyF17 Key = 4194348
	/*F18 key.*/
	KeyF18 Key = 4194349
	/*F19 key.*/
	KeyF19 Key = 4194350
	/*F20 key.*/
	KeyF20 Key = 4194351
	/*F21 key.*/
	KeyF21 Key = 4194352
	/*F22 key.*/
	KeyF22 Key = 4194353
	/*F23 key.*/
	KeyF23 Key = 4194354
	/*F24 key.*/
	KeyF24 Key = 4194355
	/*F25 key. Only supported on macOS and Linux due to a Windows limitation.*/
	KeyF25 Key = 4194356
	/*F26 key. Only supported on macOS and Linux due to a Windows limitation.*/
	KeyF26 Key = 4194357
	/*F27 key. Only supported on macOS and Linux due to a Windows limitation.*/
	KeyF27 Key = 4194358
	/*F28 key. Only supported on macOS and Linux due to a Windows limitation.*/
	KeyF28 Key = 4194359
	/*F29 key. Only supported on macOS and Linux due to a Windows limitation.*/
	KeyF29 Key = 4194360
	/*F30 key. Only supported on macOS and Linux due to a Windows limitation.*/
	KeyF30 Key = 4194361
	/*F31 key. Only supported on macOS and Linux due to a Windows limitation.*/
	KeyF31 Key = 4194362
	/*F32 key. Only supported on macOS and Linux due to a Windows limitation.*/
	KeyF32 Key = 4194363
	/*F33 key. Only supported on macOS and Linux due to a Windows limitation.*/
	KeyF33 Key = 4194364
	/*F34 key. Only supported on macOS and Linux due to a Windows limitation.*/
	KeyF34 Key = 4194365
	/*F35 key. Only supported on macOS and Linux due to a Windows limitation.*/
	KeyF35 Key = 4194366
	/*Multiply (*) key on the numeric keypad.*/
	KeyKpMultiply Key = 4194433
	/*Divide (/) key on the numeric keypad.*/
	KeyKpDivide Key = 4194434
	/*Subtract (-) key on the numeric keypad.*/
	KeyKpSubtract Key = 4194435
	/*Period (.) key on the numeric keypad.*/
	KeyKpPeriod Key = 4194436
	/*Add (+) key on the numeric keypad.*/
	KeyKpAdd Key = 4194437
	/*Number 0 on the numeric keypad.*/
	KeyKp0 Key = 4194438
	/*Number 1 on the numeric keypad.*/
	KeyKp1 Key = 4194439
	/*Number 2 on the numeric keypad.*/
	KeyKp2 Key = 4194440
	/*Number 3 on the numeric keypad.*/
	KeyKp3 Key = 4194441
	/*Number 4 on the numeric keypad.*/
	KeyKp4 Key = 4194442
	/*Number 5 on the numeric keypad.*/
	KeyKp5 Key = 4194443
	/*Number 6 on the numeric keypad.*/
	KeyKp6 Key = 4194444
	/*Number 7 on the numeric keypad.*/
	KeyKp7 Key = 4194445
	/*Number 8 on the numeric keypad.*/
	KeyKp8 Key = 4194446
	/*Number 9 on the numeric keypad.*/
	KeyKp9 Key = 4194447
	/*Context menu key.*/
	KeyMenu Key = 4194370
	/*Hyper key. (On Linux/X11 only).*/
	KeyHyper Key = 4194371
	/*Help key.*/
	KeyHelp Key = 4194373
	/*Media back key. Not to be confused with the Back button on an Android device.*/
	KeyBack Key = 4194376
	/*Media forward key.*/
	KeyForward Key = 4194377
	/*Media stop key.*/
	KeyStop Key = 4194378
	/*Media refresh key.*/
	KeyRefresh Key = 4194379
	/*Volume down key.*/
	KeyVolumedown Key = 4194380
	/*Mute volume key.*/
	KeyVolumemute Key = 4194381
	/*Volume up key.*/
	KeyVolumeup Key = 4194382
	/*Media play key.*/
	KeyMediaplay Key = 4194388
	/*Media stop key.*/
	KeyMediastop Key = 4194389
	/*Previous song key.*/
	KeyMediaprevious Key = 4194390
	/*Next song key.*/
	KeyMedianext Key = 4194391
	/*Media record key.*/
	KeyMediarecord Key = 4194392
	/*Home page key.*/
	KeyHomepage Key = 4194393
	/*Favorites key.*/
	KeyFavorites Key = 4194394
	/*Search key.*/
	KeySearch Key = 4194395
	/*Standby key.*/
	KeyStandby Key = 4194396
	/*Open URL / Launch Browser key.*/
	KeyOpenurl Key = 4194397
	/*Launch Mail key.*/
	KeyLaunchmail Key = 4194398
	/*Launch Media key.*/
	KeyLaunchmedia Key = 4194399
	/*Launch Shortcut 0 key.*/
	KeyLaunch0 Key = 4194400
	/*Launch Shortcut 1 key.*/
	KeyLaunch1 Key = 4194401
	/*Launch Shortcut 2 key.*/
	KeyLaunch2 Key = 4194402
	/*Launch Shortcut 3 key.*/
	KeyLaunch3 Key = 4194403
	/*Launch Shortcut 4 key.*/
	KeyLaunch4 Key = 4194404
	/*Launch Shortcut 5 key.*/
	KeyLaunch5 Key = 4194405
	/*Launch Shortcut 6 key.*/
	KeyLaunch6 Key = 4194406
	/*Launch Shortcut 7 key.*/
	KeyLaunch7 Key = 4194407
	/*Launch Shortcut 8 key.*/
	KeyLaunch8 Key = 4194408
	/*Launch Shortcut 9 key.*/
	KeyLaunch9 Key = 4194409
	/*Launch Shortcut A key.*/
	KeyLauncha Key = 4194410
	/*Launch Shortcut B key.*/
	KeyLaunchb Key = 4194411
	/*Launch Shortcut C key.*/
	KeyLaunchc Key = 4194412
	/*Launch Shortcut D key.*/
	KeyLaunchd Key = 4194413
	/*Launch Shortcut E key.*/
	KeyLaunche Key = 4194414
	/*Launch Shortcut F key.*/
	KeyLaunchf Key = 4194415
	/*"Globe" key on Mac / iPad keyboard.*/
	KeyGlobe Key = 4194416
	/*"On-screen keyboard" key on iPad keyboard.*/
	KeyKeyboard Key = 4194417
	/*英数 key on Mac keyboard.*/
	KeyJisEisu Key = 4194418
	/*かな key on Mac keyboard.*/
	KeyJisKana Key = 4194419
	/*Unknown key.*/
	KeyUnknown Key = 8388607
	/*Space key.*/
	KeySpace Key = 32
	/*! key.*/
	KeyExclam Key = 33
	/*" key.*/
	KeyQuotedbl Key = 34
	/*# key.*/
	KeyNumbersign Key = 35
	/*$ key.*/
	KeyDollar Key = 36
	/*% key.*/
	KeyPercent Key = 37
	/*& key.*/
	KeyAmpersand Key = 38
	/*' key.*/
	KeyApostrophe Key = 39
	/*( key.*/
	KeyParenleft Key = 40
	/*) key.*/
	KeyParenright Key = 41
	/** key.*/
	KeyAsterisk Key = 42
	/*+ key.*/
	KeyPlus Key = 43
	/*, key.*/
	KeyComma Key = 44
	/*- key.*/
	KeyMinus Key = 45
	/*. key.*/
	KeyPeriod Key = 46
	/*/ key.*/
	KeySlash Key = 47
	/*Number 0 key.*/
	Key0 Key = 48
	/*Number 1 key.*/
	Key1 Key = 49
	/*Number 2 key.*/
	Key2 Key = 50
	/*Number 3 key.*/
	Key3 Key = 51
	/*Number 4 key.*/
	Key4 Key = 52
	/*Number 5 key.*/
	Key5 Key = 53
	/*Number 6 key.*/
	Key6 Key = 54
	/*Number 7 key.*/
	Key7 Key = 55
	/*Number 8 key.*/
	Key8 Key = 56
	/*Number 9 key.*/
	Key9 Key = 57
	/*: key.*/
	KeyColon Key = 58
	/*; key.*/
	KeySemicolon Key = 59
	/*< key.*/
	KeyLess Key = 60
	/*= key.*/
	KeyEqual Key = 61
	/*> key.*/
	KeyGreater Key = 62
	/*? key.*/
	KeyQuestion Key = 63
	/*@ key.*/
	KeyAt Key = 64
	/*A key.*/
	KeyA Key = 65
	/*B key.*/
	KeyB Key = 66
	/*C key.*/
	KeyC Key = 67
	/*D key.*/
	KeyD Key = 68
	/*E key.*/
	KeyE Key = 69
	/*F key.*/
	KeyF Key = 70
	/*G key.*/
	KeyG Key = 71
	/*H key.*/
	KeyH Key = 72
	/*I key.*/
	KeyI Key = 73
	/*J key.*/
	KeyJ Key = 74
	/*K key.*/
	KeyK Key = 75
	/*L key.*/
	KeyL Key = 76
	/*M key.*/
	KeyM Key = 77
	/*N key.*/
	KeyN Key = 78
	/*O key.*/
	KeyO Key = 79
	/*P key.*/
	KeyP Key = 80
	/*Q key.*/
	KeyQ Key = 81
	/*R key.*/
	KeyR Key = 82
	/*S key.*/
	KeyS Key = 83
	/*T key.*/
	KeyT Key = 84
	/*U key.*/
	KeyU Key = 85
	/*V key.*/
	KeyV Key = 86
	/*W key.*/
	KeyW Key = 87
	/*X key.*/
	KeyX Key = 88
	/*Y key.*/
	KeyY Key = 89
	/*Z key.*/
	KeyZ Key = 90
	/*[ key.*/
	KeyBracketleft Key = 91
	/*\ key.*/
	KeyBackslash Key = 92
	/*] key.*/
	KeyBracketright Key = 93
	/*^ key.*/
	KeyAsciicircum Key = 94
	/*_ key.*/
	KeyUnderscore Key = 95
	/*` key.*/
	KeyQuoteleft Key = 96
	/*{ key.*/
	KeyBraceleft Key = 123
	/*| key.*/
	KeyBar Key = 124
	/*} key.*/
	KeyBraceright Key = 125
	/*~ key.*/
	KeyAsciitilde Key = 126
	/*¥ key.*/
	KeyYen Key = 165
	/*§ key.*/
	KeySection Key = 167
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL