tui: fix keybind matching and update page navigation keys
Some checks are pending
format / format (push) Waiting to run
snapshot / publish (push) Waiting to run

This commit is contained in:
Dax Raad 2025-09-26 02:18:32 -04:00
parent 92713e26ed
commit fa1a637af5

View file

@ -77,11 +77,12 @@ export function init() {
const parsed: Keybind.Info = {
ctrl: evt.ctrl,
name: evt.name,
shift: evt.shift,
shift: false,
leader: store.leader,
option: evt.option,
}
for (const key of keybind) {
console.log("compareing", key, parsed)
if (Keybind.match(key, parsed)) {
return true
}
@ -129,8 +130,8 @@ const DEFAULT_KEYBINDS: KeybindsConfig = {
session_compact: "<leader>c",
session_child_cycle: "ctrl+right",
session_child_cycle_reverse: "ctrl+left",
messages_page_up: "pgup",
messages_page_down: "pgdown",
messages_page_up: "pageup",
messages_page_down: "pagedown",
messages_half_page_up: "ctrl+alt+u",
messages_half_page_down: "ctrl+alt+d",
messages_first: "ctrl+g",