feat: add <C-p> and <C-n> to the select component for moving the cursor up/down (#779)

This commit is contained in:
hankertrix 2024-03-06 23:39:52 +08:00 committed by GitHub
parent 42307ee037
commit b6e458f221
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -276,6 +276,9 @@ keymap = [
{ on = [ "<Up>" ], run = "arrow -1", desc = "Move cursor up" },
{ on = [ "<Down>" ], run = "arrow 1", desc = "Move cursor down" },
{ on = [ "<C-p>" ], run = "arrow -1", desc = "Move cursor up" },
{ on = [ "<C-n>" ], run = "arrow 1", desc = "Move cursor down" },
{ on = [ "~" ], run = "help", desc = "Open help" }
]