summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cio.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-23 20:30:37 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-23 20:30:37 +0000
commit17c673c46bf3ad203eba73f9818933e307ded6d3 (patch)
treed2328abfb8aaeb8ba8487ac5b0bb8075dd8dbdd9 /crawl-ref/source/cio.cc
parente6e8b4a9e49b7313418a64850f7c924f36d8dcbe (diff)
downloadcrawl-ref-17c673c46bf3ad203eba73f9818933e307ded6d3.tar.gz
crawl-ref-17c673c46bf3ad203eba73f9818933e307ded6d3.zip
Apply my previous two commits to trunk.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10390 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/cio.cc')
-rw-r--r--crawl-ref/source/cio.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/cio.cc b/crawl-ref/source/cio.cc
index f657204f88..b9ff80c25f 100644
--- a/crawl-ref/source/cio.cc
+++ b/crawl-ref/source/cio.cc
@@ -22,6 +22,13 @@ extern int unixcurses_get_vi_key(int keyin);
static keycode_type _numpad2vi(keycode_type key)
{
+ switch(key)
+ {
+ case CK_UP: key = 'k'; break;
+ case CK_DOWN: key = 'j'; break;
+ case CK_LEFT: key = 'h'; break;
+ case CK_RIGHT: key = 'l'; break;
+ }
if (key >= '1' && key <= '9')
{
const char *vikeys = "bjnh.lyku";