Change default quit key binding to mod+shift+q
This commit is contained in:
parent
6c7b01c9aa
commit
5e18dbae95
@ -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
|
||||
|
@ -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|
|
||||
|
@ -5,7 +5,7 @@ module Uh
|
||||
|
||||
MODIFIER = :mod1
|
||||
KEYBINDS = {
|
||||
q: proc { quit }
|
||||
[:q, :shift] => proc { quit }
|
||||
}.freeze
|
||||
WORKER = :block
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user