Class: SpectrumSearchKeyboard
- Defined in:
- lib/keyboard/stb/spectrum/spectrum_search_keyboard.rb
Direct Known Subclasses
OdnOnDemandSearchKeyboard, OdnSearchKeyboard, RokuSearchKeyboard
Constant Summary
Constants inherited from Keyboard
Instance Method Summary collapse
-
#initialize(*args) ⇒ SpectrumSearchKeyboard
constructor
A new instance of SpectrumSearchKeyboard.
Methods inherited from Keyboard
Constructor Details
#initialize(*args) ⇒ SpectrumSearchKeyboard
Returns a new instance of SpectrumSearchKeyboard.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/keyboard/stb/spectrum/spectrum_search_keyboard.rb', line 6 def initialize(*args) super(*args) # see Keyboard for explanation of layouts keys = [ %w[A B C D E F], %w[G H I J K L], %w[M N O P Q R], %w[S T U V W X], %w[Y Z 1 2 3 4], %w[5 6 7 8 9 0], [:DELETE, :DELETE, :SPACE, :SPACE, :CLEAR, :CLEAR] ] @layouts << KeyboardLayout.new(keys, [0, 0], name: 'search') @verify_roi = dut.roi.text.search_box_text_entered rescue nil # Do not traverse from any of the multi-column keys except to the key above-left of it, since they always left-justify. @deny_traversals = [ [:DELETE, '6'], [:SPACE, '8'], [:CLEAR, '0'] ] end |