From d4989d98bd41ea06c069444af5c8f15e2b6ea4da Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Tue, 27 Dec 2022 23:40:22 +0000 Subject: [PATCH] Add example settings to _overwrite_ an existing key binding (#1270) --- data/core/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/core/init.lua b/data/core/init.lua index 89b7725..81f38d7 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -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: