From b9e4931e7cde4cd7f4c571d4b3bfec87205f0c7d Mon Sep 17 00:00:00 2001 From: William McBrine Date: Thu, 30 Mar 2006 02:52:51 +0000 Subject: [PATCH] Only print modifiers for actual button events, and not scroll wheeling. --- demos/testcurs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/demos/testcurs.c b/demos/testcurs.c index 8e683092..8f1a51b5 100644 --- a/demos/testcurs.c +++ b/demos/testcurs.c @@ -6,7 +6,7 @@ * wrs(5/28/93) -- modified to be consistent (perform identically) with * either PDCurses or under Unix System V, R4 * - * $Id: testcurs.c,v 1.44 2006/03/29 19:50:14 wmcbrine Exp $ + * $Id: testcurs.c,v 1.45 2006/03/30 02:52:51 wmcbrine Exp $ */ #ifdef PDCDEBUG @@ -399,7 +399,8 @@ void inputTest(WINDOW *win) else if (BUTTON_CHANGED(3)) button = 3; - if (BUTTON_STATUS(button) & BUTTON_MODIFIER_MASK) + if (button && (BUTTON_STATUS(button) & + BUTTON_MODIFIER_MASK)) { waddstr(win, " Modifier(s):");