summaryrefslogtreecommitdiff
path: root/src/keyboardconfig.cpp
diff options
context:
space:
mode:
authorSteve Cotton <steve@s.cotton.clara.co.uk>2009-02-11 23:28:18 +0000
committerIra Rice <irarice@gmail.com>2009-02-13 08:04:10 -0700
commitcb0be69dcf9ca771943fbe36c8b740490a6f459c (patch)
tree1fdae03b92aabd7652a6257797ed6fcc4e42a05d /src/keyboardconfig.cpp
parent35d95932256d615da0599bad8acdbf91777962b0 (diff)
downloadmana-cb0be69dcf9ca771943fbe36c8b740490a6f459c.tar.gz
mana-cb0be69dcf9ca771943fbe36c8b740490a6f459c.tar.bz2
mana-cb0be69dcf9ca771943fbe36c8b740490a6f459c.tar.xz
mana-cb0be69dcf9ca771943fbe36c8b740490a6f459c.zip
Ignore "window manager + arrow" key combinations
Adds two configurable "ignore" keys. Stops the character moving about if the user's window manager uses "ignore+arrow key" to switch virtual desktops.
Diffstat (limited to 'src/keyboardconfig.cpp')
-rw-r--r--src/keyboardconfig.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/keyboardconfig.cpp b/src/keyboardconfig.cpp
index 1976e803..8187bef7 100644
--- a/src/keyboardconfig.cpp
+++ b/src/keyboardconfig.cpp
@@ -96,7 +96,9 @@ static KeyData const keyData[KeyboardConfig::KEY_TOTAL] = {
{"keyChatScrollUp", SDLK_PAGEUP, _("Scroll Chat Up")},
{"keyChatScrollDown", SDLK_PAGEDOWN, _("Scroll Chat Down")},
{"keyOK", SDLK_RETURN, _("Select OK")},
- {"keyQuit", SDLK_ESCAPE, _("Quit")}
+ {"keyQuit", SDLK_ESCAPE, _("Quit")},
+ {"keyIgnoreInput1", SDLK_LSUPER, _("Ignore input 1")},
+ {"keyIgnoreInput2", SDLK_RSUPER, _("Ignore input 2")}
};
void KeyboardConfig::init()