fixed modifier bug in textfield again

This commit is contained in:
kojima committed 2001-02-09 16:03:09 +00:00
1 parent 4d8e691608
commit 05f2a74ef5
5 files changed
+60 -1

No files matched your search

+3
View File
@@ -1000,7 +1000,10 @@ handleTextFieldKeyPress(TextField *tPtr, XEvent *event)
int cancelSelection = 1;
Bool shifted, controled, modified;
Bool relay = True;
WMScreen *scr = tPtr->view->screen;
event->xkey.state &= ~scr->ignoredModifierMask;
/*printf("(%d,%d) -> ", tPtr->selection.position, tPtr->selection.count);*/
if (((XKeyEvent *) event)->state & WM_EMACSKEYMASK)
control_pressed = 1;