diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-23 17:54:51 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-23 17:54:51 +0000 |
commit | fd8bd1ca5468a36c6ec217327d227c5307ba1356 (patch) | |
tree | 46d7908b0e420b368023fdbd10b07727c057372c /crawl-ref/source/cio.cc | |
parent | 789c8d12812481ef899b443c2dd6a346c99f4db9 (diff) | |
download | crawl-ref-fd8bd1ca5468a36c6ec217327d227c5307ba1356.tar.gz crawl-ref-fd8bd1ca5468a36c6ec217327d227c5307ba1356.zip |
Fix (part of) 2820968: / dir not working on Unix.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10386 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/cio.cc')
-rw-r--r-- | crawl-ref/source/cio.cc | 7 |
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"; |