Implement `key' run control keyword

This commit is contained in:
Thibault Jouan 2015-04-14 05:13:35 +00:00
parent 2a1a1f1185
commit 08fe5a6994

View File

@ -0,0 +1,10 @@
Feature: `key' run control keyword
Scenario: defines code to run when given key is pressed
Given a run control file with:
"""
key(:f) { puts 'trigger f key code' }
"""
And uhwm is running
When I press the alt+f keys
Then the output must contain "trigger f key code"