module RETerm::NavControls

Constants

DOWN_CONTROLS

Down navigation keys

ENTER_CONTROLS

Key if pressed focuses on / activates a component

LEFT_CONTROLS

Left navigation keys

MOVEMENT_CONTROLS

All movement keys

QUIT_CONTROLS

Key which if pressed causes the navigation component to lose focus / become deactivated

RIGHT_CONTROLS

Right navigation keys

UP_CONTROLS

Up navigation keys

Public Instance Methods

quit_nav?(ch=nil) click to toggle source

Quit when quit-sequence detected or app-shutdown

# File lib/reterm/mixins/nav_controls.rb, line 29
def quit_nav?(ch=nil)
  (!ch.nil? && QUIT_CONTROLS.include?(ch) || shutdown? || deactivate?)
end