From: P. F. Chimento Date: Sun, 1 May 2011 14:37:11 +0000 (+0200) Subject: Implement line terminators for text grids X-Git-Tag: v0.9~87 X-Git-Url: https://git.stderr.nl/gitweb?p=projects%2Fchimara%2Fchimara.git;a=commitdiff_plain;h=90f81e9746e30095b991091947c0e1bc7f046c51 Implement line terminators for text grids This completes the 0.7.2 Glk specification, closing #2. --- diff --git a/libchimara/input.c b/libchimara/input.c index b43eae9..e3f887b 100644 --- a/libchimara/input.c +++ b/libchimara/input.c @@ -815,6 +815,11 @@ on_input_entry_key_press_event(GtkEntry *input_entry, GdkEventKey *event, winid_ g_signal_handler_unblock(input_entry, win->line_input_entry_changed); return TRUE; } + else if(g_slist_find(win->current_extra_line_terminators, GUINT_TO_POINTER(event->keyval))) + { + /* If this key was a line terminator, pretend we pressed enter */ + on_input_entry_activate(input_entry, win); + } return FALSE; }