From cf8c0df0c538ce60740ef428534f15938d9ee32c Mon Sep 17 00:00:00 2001 From: sungmin ha Date: Wed, 19 Aug 2015 16:46:06 +0900 Subject: [PATCH] controller: moved focus to main window for the keyboard input Change-Id: I1f5899276bfd7926cc6ff9da9b0834080e9da7fa Signed-off-by: sungmin ha --- tizen/src/ui/controller/floatingconview.cpp | 8 ++++++++ tizen/src/ui/controller/floatingconview.h | 1 + tizen/src/ui/skinview.cpp | 1 - 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tizen/src/ui/controller/floatingconview.cpp b/tizen/src/ui/controller/floatingconview.cpp index db550baa91..048d4252c4 100644 --- a/tizen/src/ui/controller/floatingconview.cpp +++ b/tizen/src/ui/controller/floatingconview.cpp @@ -228,6 +228,14 @@ void FloatingConView::mouseMoveEvent(QMouseEvent *event) } } +/* override */ +void FloatingConView::focusInEvent(QFocusEvent *event) +{ + const FloatingController *con = parent; + MainWindow *win = ((MainWindow *)con->parent()); + win->activateWindow(); +} + QList FloatingConView::getKeyList() { return keyList; diff --git a/tizen/src/ui/controller/floatingconview.h b/tizen/src/ui/controller/floatingconview.h index 41a753fb7c..5b39c724bb 100644 --- a/tizen/src/ui/controller/floatingconview.h +++ b/tizen/src/ui/controller/floatingconview.h @@ -50,6 +50,7 @@ protected: void mousePressEvent(QMouseEvent *event); void mouseReleaseEvent(QMouseEvent *event); void mouseMoveEvent(QMouseEvent *event); + void focusInEvent(QFocusEvent *event); int isDockable(QWidget *object, QWidget *subject); diff --git a/tizen/src/ui/skinview.cpp b/tizen/src/ui/skinview.cpp index 4bd8d57878..aacbfc2edf 100644 --- a/tizen/src/ui/skinview.cpp +++ b/tizen/src/ui/skinview.cpp @@ -149,7 +149,6 @@ void SkinView::mouseMoveEvent(QMouseEvent *event) /* override */ void SkinView::focusOutEvent(QFocusEvent *event) { - qDebug() << "focus out!"; kbdHelper->autoKeyRelease(); } -- 2.34.1