summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cio.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-10 13:21:45 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-10 13:21:45 +0000
commit3a1e34e90153981eb8a83241a49d1280eae4ab3a (patch)
tree7ab753dc63d8edb73545bea53e434a7a7bb1f7c5 /crawl-ref/source/cio.cc
parent56f8c2bfbc13fa45a7b0b7f3210e16e61227143f (diff)
downloadcrawl-ref-3a1e34e90153981eb8a83241a49d1280eae4ab3a.tar.gz
crawl-ref-3a1e34e90153981eb8a83241a49d1280eae4ab3a.zip
[2149330] Apply castamir's keypad patch.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8380 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/cio.cc')
-rw-r--r--crawl-ref/source/cio.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/cio.cc b/crawl-ref/source/cio.cc
index 1696b5dc30..4b64426a0e 100644
--- a/crawl-ref/source/cio.cc
+++ b/crawl-ref/source/cio.cc
@@ -17,6 +17,8 @@ REVISION("$Rev$");
#include <queue>
#ifdef UNIX
+extern int unixcurses_get_vi_key(int keyin);
+
static keycode_type _numpad2vi(keycode_type key)
{
if (key >= '1' && key <= '9')
@@ -91,6 +93,8 @@ int unmangle_direction_keys(int keyin, KeymapContext keymap,
case '7': return 'y';
case '8': return 'k';
case '9': return 'u';
+
+ default: return unixcurses_get_vi_key(keyin);
#else
case '1': return 'B';
case '2': return 'J';