func_maxgui_sethotkeyevent.rst 755 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. .. _func_maxgui_sethotkeyevent:
  2. ==============
  3. SetHotKeyEvent
  4. ==============
  5. SetHotKeyEvent -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. SetHotKeyEvent:THotKey( key,mods,event:TEvent=Null,owner=0 )
  10. Set a hotkey event.
  11. When the specified hotkey combination is selected by the user, the specified
  12. @event will be emitted using #EmitEvent.
  13. If @event is #Null, an event with @id equal to EVENT_HOTKEYHIT, @data equal
  14. to @key and @mods equal to @mods will be emitted.
  15. #SetHotKeyEvent will overwrite any existing hotkey event with the same @key, @mods and @owner.
  16. Please refer to the #{key codes} module for valid key and modifier codes.
  17. Parameters
  18. ==========
  19. Return Values
  20. =============
  21. Nothing.
  22. Examples
  23. ========
  24. See Also
  25. ========