summaryrefslogtreecommitdiff
path: root/textscreen/txt_button.c
diff options
context:
space:
mode:
authorSimon Howard2006-05-23 00:05:05 +0000
committerSimon Howard2006-05-23 00:05:05 +0000
commit7666630775f51fe991005ff8219cb4cc0cb70327 (patch)
treeae1ee420f34d2a5dab710244faf716cca8b3d829 /textscreen/txt_button.c
parent1d79686ecf017935fd45c3d7eff3aa844f4d02e6 (diff)
downloadchocolate-doom-7666630775f51fe991005ff8219cb4cc0cb70327.tar.gz
chocolate-doom-7666630775f51fe991005ff8219cb4cc0cb70327.tar.bz2
chocolate-doom-7666630775f51fe991005ff8219cb4cc0cb70327.zip
Eat keypresses when pressing buttons.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 514
Diffstat (limited to 'textscreen/txt_button.c')
-rw-r--r--textscreen/txt_button.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/textscreen/txt_button.c b/textscreen/txt_button.c
index 6ff2bfe3..12ec9433 100644
--- a/textscreen/txt_button.c
+++ b/textscreen/txt_button.c
@@ -54,6 +54,7 @@ static int TXT_ButtonKeyPress(TXT_UNCAST_ARG(button), int key)
if (key == KEY_ENTER)
{
TXT_EmitSignal(button, "pressed");
+ return 1;
}
return 0;