Sha256: 8b13e5e2cf94d7b42f05d712389fc7047b06c606bd841d9fd9b9b7223efec39c

Contents?: true

Size: 530 Bytes

Versions: 19

Compression:

Stored size: 530 Bytes

Contents

key_presses = {
  "ARROW_UP" => "up arrow",
  "ARROW_DOWN" => "down arrow",
  "ARROW_LEFT" => "left arrow",
  "ARROW_RIGHT" => "right arrow",
  "CR" => "return",
  "BS" => "backspace",
  "HOME" => "home",
  "DEL" => "delete"
}
key_presses.each do |const,text|
  When "I press the #{text} key" do
    Swt.sync_exec do
      tab = Redcar.app.focussed_window.focussed_notebook_tab
      widget = tab.edit_view.controller.mate_text.get_control
      key = Swt::SWT.const_get(const)
      FakeKeyEvent.new(key,widget)
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
redcar-0.13 plugins/application/features/step_definitions/key_steps.rb
redcar-dev-0.13.5dev plugins/application/features/step_definitions/key_steps.rb
redcar-dev-0.13.4dev plugins/application/features/step_definitions/key_steps.rb
redcar-dev-0.13.3dev plugins/application/features/step_definitions/key_steps.rb
redcar-dev-0.13.2dev plugins/application/features/step_definitions/key_steps.rb
redcar-dev-0.13.1dev plugins/application/features/step_definitions/key_steps.rb
redcar-0.12.1 plugins/application/features/step_definitions/key_steps.rb
redcar-dev-0.13.0dev plugins/application/features/step_definitions/key_steps.rb
redcar-0.12 plugins/application/features/step_definitions/key_steps.rb
redcar-dev-0.12.27dev plugins/application/features/step_definitions/key_steps.rb
redcar-dev-0.12.26dev plugins/application/features/step_definitions/key_steps.rb
redcar-dev-0.12.25dev plugins/application/features/step_definitions/key_steps.rb
redcar-dev-0.12.24dev plugins/application/features/step_definitions/key_steps.rb
redcar-dev-0.12.23dev plugins/application/features/step_definitions/key_steps.rb
redcar-dev-0.12.22dev plugins/application/features/step_definitions/key_steps.rb
redcar-dev-0.12.21dev plugins/application/features/step_definitions/key_steps.rb
redcar-dev-0.12.20dev plugins/application/features/step_definitions/key_steps.rb
redcar-dev-0.12.19dev plugins/application/features/step_definitions/key_steps.rb
redcar-dev-0.12.18dev plugins/application/features/step_definitions/key_steps.rb