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:
parent
2f40b8b80b
commit
11349b0c63
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user