tests: Add more global awful.key in test-awesomerc.

This forces the hotkey popup to have pages.
This commit is contained in:
Emmanuel Lepage Vallee 2019-12-01 19:25:10 -05:00
parent 1f604a73c9
commit a53ff7418e
1 changed files with 19 additions and 0 deletions

View File

@ -228,6 +228,25 @@ local steps = {
return true
end,
-- Add more keybindings for make sure the popup has many pages.
function()
for j=1, 10 do
for i=1, 200 do
awful.keyboard.append_global_keybinding(
awful.key {
key = "#"..(300+i),
modifiers = {},
on_press = function() end,
description = "Fake "..i,
group = "Fake"..j,
}
)
end
end
return true
end,
-- Hotkeys popup should be displayed and hidden
function(count)
local s = awful.screen.focused()