summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/macro.h
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-06 03:26:24 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-06 03:26:24 +0000
commitb97ff40fcb0212a3e295b44269fe9552c4acf754 (patch)
treee77879f58916c5437202425514f8c50b5e222c2f /crawl-ref/source/macro.h
parenta8a183dca9dfa75807dadc556e84b20aab993ce8 (diff)
downloadcrawl-ref-b97ff40fcb0212a3e295b44269fe9552c4acf754.tar.gz
crawl-ref-b97ff40fcb0212a3e295b44269fe9552c4acf754.zip
Adding back in a menu keymap context so (for example) numpad telnet users can map numpad enter to normal enter.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6876 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/macro.h')
-rw-r--r--crawl-ref/source/macro.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/macro.h b/crawl-ref/source/macro.h
index 16c13f358c..7ebeee3318 100644
--- a/crawl-ref/source/macro.h
+++ b/crawl-ref/source/macro.h
@@ -28,13 +28,15 @@ enum KeymapContext {
KC_LEVELMAP, // When in the 'X' level map
KC_TARGETING, // Only during 'x' and other targeting modes
KC_CONFIRM, // When being asked y/n/q questions
+ KC_MENU, // For menus
#ifdef USE_TILE
KC_TILE, // For context_for_command()
#endif
KC_CONTEXT_COUNT, // Must always be the last real context
- KC_NONE // Don't apply any keymaps (for menus)
+
+ KC_NONE
};
class key_recorder;