Sha256: a7b7d5cdd97170ca0032a185186ca5af1a0d05b927d31ad9a0a8b76211bbd85c
Contents?: true
Size: 493 Bytes
Versions: 19
Compression:
Stored size: 493 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 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
Version data entries
19 entries across 19 versions & 2 rubygems