]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
return doesn't toggle button state
authorewt <ewt>
Fri, 2 Aug 1996 18:44:01 +0000 (18:44 +0000)
committerewt <ewt>
Fri, 2 Aug 1996 18:44:01 +0000 (18:44 +0000)
checkbox.c

index 74a6e793c1cdf4fc8bae894723c86d874059fdf7..a6dd09b306e5fe03c4e9ce2b4fa663e05457d5c8 100644 (file)
@@ -208,7 +208,7 @@ struct eventResult cbEvent(struct newtComponent * co, struct event ev) {
            break;
 
          case EV_KEYPRESS:
-           if (ev.u.key == ' ' || ev.u.key == '\r') {
+           if (ev.u.key == ' ') {
                if (cb->type == RADIO) {
                    makeActive(co);
                } else if (cb->type == CHECK) {