Navigation and structure
Container
Native Qt
Key Catcher
Key Catcher is a native Zui container in the navigation and structure catalog, with 2 component-specific properties.
Usage
Ruby example
Paste this complete Builder example inside the app surface from the Quickstart. Replace illustrative asset paths with files from your project.
keys = key_catcher blocked: false do
label "Press an arrow key or Escape"
end
on(keys, :move) { |event| puts event.fetch("direction") }
API
Component properties
2 component-specific values, plus shared item and layout properties.
blockedBlocked configuration for Key Catcher.propertyvisibleVisible configuration for Key Catcher.propertyShow 16 shared item properties
enabledopacityscalerotationzwidthheightfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction
Events
Subscribe with on widget, :event and keep behavior in Ruby.
↗
moveNative event payload↗
activateNative event payload↗
returnNative event payload↗
closeNative event payload↗
deleteNative event payload↗
tabNative event payload↗
textNative event payload