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 modifier :ctrl
""" """
And uhwm is running And uhwm is running
When I press the ctrl+q keys When I press the ctrl+shift+q keys
Then uhwm must terminate successfully Then uhwm must terminate successfully

View File

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

View File

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

View File

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

View File

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