Add example settings to _overwrite_ an existing key binding (#1270)

This commit is contained in:
Martin Ashby 2022-12-27 23:40:22 +00:00 committed by GitHub
parent 5fa7dabd34
commit d4989d98bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -495,6 +495,10 @@ local style = require "core.style"
-- key binding:
-- keymap.add { ["ctrl+escape"] = "core:quit" }
-- pass 'true' for second parameter to overwrite an existing binding
-- keymap.add({ ["ctrl+pageup"] = "root:switch-to-previous-tab" }, true)
-- keymap.add({ ["ctrl+pagedown"] = "root:switch-to-next-tab" }, true)
------------------------------- Fonts ----------------------------------------
-- customize fonts: