Ctrl-J / Ctrl-K Hotkey for navigation within command palette and quick switcher

I made it work by calling this JS code at obsidian startup. You can do this with various plugins or by making your own plugin.


    document.addEventListener('keydown',(e) =>{
        if (e.code == "KeyN" && e.ctrlKey && !e.shiftKey && !e.metaKey){
            document.dispatchEvent(new KeyboardEvent("keydown",{"key":"ArrowDown","code":"ArrowDown"}))
        }
    });

    document.addEventListener('keydown',(e) =>{
        if (e.code == "KeyP" && e.ctrlKey && !e.shiftKey && !e.metaKey){
            document.dispatchEvent(new KeyboardEvent("keydown",{"key":"ArrowUp","code":"ArrowUp"}))
        }
    });

This code listens for Ctrl+N and Ctrl+P key press events and creates a new ArrowDown/ArrowUp event.

It could be made more specific by attaching the event listener to the specific DOM elements where you want this functionality.