Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 658 Bytes

KeybindCapturer.html.md

File metadata and controls

17 lines (11 loc) · 658 Bytes

KeybindCapturer

CaptureWindow extends MainWindow.

Use this widget when you need to spawn a window that will capture a key press from the user.
The Keybind Manager grants a method which can be used for generic Keybind capturing and comes rather preconfigured to spare you the work. If you need to further customize it, or customize a Capturer from scratch, you may do that as well.

Example:

    local capturer = KeybindManager:createCapturer("Press a combination of keys to use as your keybind:", function(capturedKeyCombo)
      print("Captured: " .. capturedKeyCombo)
    end)

Example