From 890254a4f9f973c2f72be30dbaa78b8171034d7b Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Mon, 11 Feb 2019 17:04:30 -0200 Subject: [PATCH] Adjust keybindings to match vim --- README.md | 2 +- main.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8419068..af8f521 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ An hex-based paletted image ~~editor~~ creator. Keys: - up/down/left/right move cursor -- i/k/j/l move cursor +- k/j/h/l move cursor - z decrement - x increment - shift+z step decrement diff --git a/main.lua b/main.lua index e14839b..dbc63b5 100644 --- a/main.lua +++ b/main.lua @@ -293,11 +293,11 @@ function love.update(dt) backimage:replacePixels(backimagedata) end end - ktup('i', imgup) + ktup('k', imgup) ktup('up', imgup) - ktup('j', imgleft) + ktup('h', imgleft) ktup('left', imgleft) - ktup('k', imgdown) + ktup('j', imgdown) ktup('down', imgdown) ktup('l', imgright) ktup('right', imgright)