Ignore keypresses with FL_CTRL modifier so that menubar can process them.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4685 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2005-12-05 02:14:25 +00:00
parent 2f40b8b80b
commit 11349b0c63

View File

@ -348,6 +348,7 @@ SudokuCell::handle(int event) {
break;
case FL_KEYDOWN :
if (Fl::event_state() & FL_CTRL) break;
int key = Fl::event_key() - '0';
if (key < 0 || key > 9) key = Fl::event_key() - FL_KP - '0';
if (key > 0 && key <= 9) {