Brought all the Gtk-Doc documentation up to date with where we are so far.
[projects/chimara/chimara.git] / libchimara / input.c
index 18a7ecbcb124aae33295ebde4ca27314bc8e0f44..acd0ae1e4de4d9e89a565ee4364d579b0109b57e 100644 (file)
@@ -275,7 +275,7 @@ glk_request_line_event_uni(winid_t win, glui32 *buf, glui32 maxlen, glui32 initl
  *
  * 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)
@@ -290,7 +290,7 @@ 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 );