Change default quit key binding to mod+shift+q

This commit is contained in:
Thibault Jouan 2015-04-19 01:28:03 +00:00
parent 6c7b01c9aa
commit 5e18dbae95
5 changed files with 6 additions and 6 deletions

View File

@ -6,5 +6,5 @@ Feature: `modifier' run control keyword
modifier :ctrl
"""
And uhwm is running
When I press the ctrl+q keys
When I press the ctrl+shift+q keys
Then uhwm must terminate successfully

View File

@ -24,7 +24,7 @@ When /^I run uhwm with options? (-.+)$/ do |options|
end
When /^I tell uhwm to quit$/ do
x_key 'alt+q'
x_key 'alt+shift+q'
end
Then /^the exit status must be (\d+)$/ do |exit_status|

View File

@ -5,7 +5,7 @@ module Uh
MODIFIER = :mod1
KEYBINDS = {
q: proc { quit }
[:q, :shift] => proc { quit }
}.freeze
WORKER = :block

View File

@ -12,7 +12,7 @@ module Uh
def uhwm_ensure_stop
if @process
x_key 'alt+q'
x_key 'alt+shift+q'
@process.terminate
end
end

View File

@ -25,8 +25,8 @@ module Uh
expect(env.modifier).to eq :mod1
end
it 'has defaults key bindings set' do
expect(env.keybinds.keys).to eq %i[q]
it 'has default key binding for quit set' do
expect(env.keybinds.keys).to include [:q, :shift]
end
it 'has the blocking worker by default' do