From 7666630775f51fe991005ff8219cb4cc0cb70327 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 23 May 2006 00:05:05 +0000 Subject: Eat keypresses when pressing buttons. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 514 --- textscreen/txt_button.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3