diff --git a/features/run_control/modifier.feature b/features/run_control/modifier.feature index 24da25c..8c7292b 100644 --- a/features/run_control/modifier.feature +++ b/features/run_control/modifier.feature @@ -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 diff --git a/features/steps/run_steps.rb b/features/steps/run_steps.rb index 790e57d..9ce5204 100644 --- a/features/steps/run_steps.rb +++ b/features/steps/run_steps.rb @@ -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| diff --git a/lib/uh/wm/env.rb b/lib/uh/wm/env.rb index 779ad1b..20755f6 100644 --- a/lib/uh/wm/env.rb +++ b/lib/uh/wm/env.rb @@ -5,7 +5,7 @@ module Uh MODIFIER = :mod1 KEYBINDS = { - q: proc { quit } + [:q, :shift] => proc { quit } }.freeze WORKER = :block diff --git a/lib/uh/wm/testing/acceptance_helpers.rb b/lib/uh/wm/testing/acceptance_helpers.rb index 7e63216..f99989d 100644 --- a/lib/uh/wm/testing/acceptance_helpers.rb +++ b/lib/uh/wm/testing/acceptance_helpers.rb @@ -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 diff --git a/spec/uh/wm/env_spec.rb b/spec/uh/wm/env_spec.rb index 03336a6..b638f6b 100644 --- a/spec/uh/wm/env_spec.rb +++ b/spec/uh/wm/env_spec.rb @@ -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