Also changed docview mousewheel into a scroll command.

This commit is contained in:
Adam Harrison
2021-11-14 15:41:28 -05:00
parent 7babed1e6b
commit 50c0659445
3 changed files with 12 additions and 6 deletions
+2 -1
View File
@@ -92,7 +92,7 @@ end
local click_prefixes = { "s", "d", "t" }
function keymap.on_mouse_pressed(button, x, y, clicks)
return not keymap.on_key_pressed(click_prefixes[((clicks - 1) % 3) + 1] .. button:sub(1,1) .. "click", x, y, clicks)
return not keymap.on_key_pressed(click_prefixes[((clicks - 1) % 3) + 1] .. button:sub(1,1) .. "click", x, y, clicks) and
keymap.on_key_pressed(button:sub(1,1) .. "click", x, y, clicks)
end
@@ -143,6 +143,7 @@ keymap.add_direct {
["alt+7"] = "root:switch-to-tab-7",
["alt+8"] = "root:switch-to-tab-8",
["alt+9"] = "root:switch-to-tab-9",
["wheel"] = "root:scroll",
["ctrl+f"] = "find-replace:find",
["ctrl+r"] = "find-replace:replace",