From 40aa69289d06c3eea9003dc42fe2caf545412870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Mill=C3=A1n?= Date: Thu, 11 Feb 2016 13:47:34 +0100 Subject: [PATCH] Keybindings: swap 'j' and 'k' keys use 'j' as KEY_DOWN and 'k' as KEY_UP --- src/keybinding.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/keybinding.c b/src/keybinding.c index 5888dc0..92921d7 100644 --- a/src/keybinding.c +++ b/src/keybinding.c @@ -38,8 +38,8 @@ //! sngrep keybindings key_binding_t bindings[ACTION_SENTINEL] = { { ACTION_PRINTABLE, "", { }, 0 }, - { ACTION_UP, "up", { KEY_UP, 'j' }, 2 }, - { ACTION_DOWN, "down", { KEY_DOWN, 'k' }, 2 }, + { ACTION_UP, "up", { KEY_UP, 'k' }, 2 }, + { ACTION_DOWN, "down", { KEY_DOWN, 'j' }, 2 }, { ACTION_LEFT, "left", { KEY_LEFT, 'h' }, 2 }, { ACTION_RIGHT, "right", { KEY_RIGHT, 'l'}, 2 }, { ACTION_DELETE, "delete", { KEY_DC }, 1 },