Translate common key names in `key' RC keyword

This commit is contained in:
Thibault Jouan
2015-04-14 22:14:10 +00:00
parent f53ad53806
commit 56197c85f8
3 changed files with 31 additions and 3 deletions

View File

@@ -8,3 +8,12 @@ Feature: `key' run control keyword
And uhwm is running
When I press the alt+f keys
Then the output must contain "trigger f key code"
Scenario: translates common key names to their X equivalent
Given a run control file with:
"""
key(:enter) { puts 'trigger return key code' }
"""
And uhwm is running
When I press the alt+Return keys
Then the output must contain "trigger return key code"