summaryrefslogtreecommitdiff
path: root/src/Fl_Input.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2018-03-24 17:08:25 +0000
committerMatthias Melcher <fltk@matthiasm.com>2018-03-24 17:08:25 +0000
commitfada3a829188294df580d5e59765114aa4a155b2 (patch)
tree593e05378991c80c8009e3919d1fa36755866469 /src/Fl_Input.cxx
parent79b31708de7b1544d0e7b32d616ecb9b79d1b9bd (diff)
Android: Rough, verz rough kezboard handling.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12794 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Input.cxx')
-rw-r--r--src/Fl_Input.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Fl_Input.cxx b/src/Fl_Input.cxx
index 69abcc013..18f067fcd 100644
--- a/src/Fl_Input.cxx
+++ b/src/Fl_Input.cxx
@@ -458,14 +458,17 @@ int Fl_Input::handle_key() {
int Fl_Input::handle(int event) {
static int dnd_save_position, dnd_save_mark, drag_start = -1, newpos;
static Fl_Widget *dnd_save_focus = NULL;
+ static int has_keyboard = 0;
switch (event) {
case FL_UNFOCUS:
if (Fl::screen_driver()->has_marked_text() && Fl::compose_state) {
this->mark( this->position() );
Fl::reset_marked_text();
}
+ Fl::screen_driver()->release_keyboard();
break;
case FL_FOCUS:
+ Fl::screen_driver()->request_keyboard();
switch (Fl::event_key()) {
case FL_Right:
position(0);