From 90f81e9746e30095b991091947c0e1bc7f046c51 Mon Sep 17 00:00:00 2001 From: "P. F. Chimento" Date: Sun, 1 May 2011 16:37:11 +0200 Subject: [PATCH] Implement line terminators for text grids This completes the 0.7.2 Glk specification, closing #2. --- libchimara/input.c | 5 +++++ 1 file changed, 5 insertions(+) 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; } -- 2.30.2