diff options
author | Simon Howard | 2011-04-17 17:33:04 +0000 |
---|---|---|
committer | Simon Howard | 2011-04-17 17:33:04 +0000 |
commit | 30952764cf640001a2e8a0e2e4fefec734b147d9 (patch) | |
tree | 8763daa3bd922e05f25dc6f91f34a0f8b92c8808 /textscreen | |
parent | fe8ede706f67c27561033d2a371280712260a101 (diff) | |
download | chocolate-doom-30952764cf640001a2e8a0e2e4fefec734b147d9.tar.gz chocolate-doom-30952764cf640001a2e8a0e2e4fefec734b147d9.tar.bz2 chocolate-doom-30952764cf640001a2e8a0e2e4fefec734b147d9.zip |
Fix libtextscreen window hotkeys to work when shift is held down /
capslock turned on. Fix a similar problem in-game when typing cheat
codes or using menu hotkeys (thanks Alexandre Xavier).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2327
Diffstat (limited to 'textscreen')
-rw-r--r-- | textscreen/txt_window_action.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/textscreen/txt_window_action.c b/textscreen/txt_window_action.c index 81d3e94d..df0e4ea3 100644 --- a/textscreen/txt_window_action.c +++ b/textscreen/txt_window_action.c @@ -82,7 +82,7 @@ static int TXT_WindowActionKeyPress(TXT_UNCAST_ARG(action), int key) { TXT_CAST_ARG(txt_window_action_t, action); - if (key == action->key) + if (tolower(key) == tolower(action->key)) { TXT_EmitSignal(action, "pressed"); return 1; |