Accept modifier in `key' run control keyword

This commit is contained in:
Thibault Jouan
2015-04-19 01:12:35 +00:00
parent 231e72df42
commit 6c7b01c9aa
3 changed files with 17 additions and 3 deletions

View File

@@ -8,6 +8,14 @@ Feature: `key' run control keyword
When I press the alt+f keys
Then the output must contain "trigger f key code"
Scenario: defines code to run when given keys are pressed
Given uhwm is running with this run control file:
"""
key(:f, :shift) { puts 'trigger f key code' }
"""
When I press the alt+shift+f keys
Then the output must contain "trigger f key code"
Scenario: translates common key names to their X equivalent
Given uhwm is running with this run control file:
"""