From df309d092efcd9e0eafe9a623e1ac0ba02c616af Mon Sep 17 00:00:00 2001 From: siemargl Date: Tue, 12 Apr 2016 19:12:45 +0000 Subject: [PATCH] revert comment git-svn-id: svn://kolibrios.org@6397 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/C_Layer/libguic_kolibri/boardmsg.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/contrib/C_Layer/libguic_kolibri/boardmsg.c b/contrib/C_Layer/libguic_kolibri/boardmsg.c index 64af3b961..a9b29f78f 100644 --- a/contrib/C_Layer/libguic_kolibri/boardmsg.c +++ b/contrib/C_Layer/libguic_kolibri/boardmsg.c @@ -21,7 +21,7 @@ int main() kolibri_window_add_element(main_window, KOLIBRI_CHECK_BOX, checkbox); kolibri_window_add_element(main_window, KOLIBRI_BUTTON, button); - volatile unsigned press_key; + extern volatile unsigned press_key; do /* Start of main activity loop */ { @@ -31,12 +31,11 @@ int main() } else if(gui_event == KOLIBRI_EVENT_KEY) { -/* siemargl commented out because keys stealed from textinput key = get_key(); switch (key.code) { case 13: - if(checkbox -> flags & CHECKBOX_IS_SET) /* Append BoardMsg checkbox is set * / + if(checkbox -> flags & CHECKBOX_IS_SET) /* Append BoardMsg checkbox is set */ debug_board_write_str("BOARDMSG: "); debug_board_write_str(textbox->text); @@ -44,7 +43,7 @@ int main() break; } press_key = key.val; -*/ + kolibri_handle_event_key(main_window); } else if(gui_event == KOLIBRI_EVENT_BUTTON)