*
* For convenience, it is legal to call glk_cancel_line_event() even if there
* is no line input request on that window. The event type will be set to
- * #evtype_None in this case.
+ * %evtype_None in this case.
*/
void
glk_cancel_line_event(winid_t win, event_t *event)
event->val2 = 0;
}
- if(win->input_request_type == INPUT_REQUEST_NONE)
+ if(win->input_request_type != INPUT_REQUEST_LINE && win->input_request_type != INPUT_REQUEST_LINE_UNICODE)
return;
g_signal_handler_block( G_OBJECT(win->widget), win->keypress_handler );