Handling H/W key event when key is released 97/180997/6
authorYunjin Lee <yunjin-.lee@samsung.com>
Thu, 7 Jun 2018 06:35:10 +0000 (15:35 +0900)
committerTomasz Swierczek <t.swierczek@samsung.com>
Tue, 28 Aug 2018 04:52:47 +0000 (04:52 +0000)
- There is a function that is processed by a combination of several
inputs. For example, input combination of screen capture is swiping
the screen from side to side, keeping pressing the power key.

Askuser is processing key down event and it makes key
combination handling fail. To make keyrouter to handle input
combination, modify askuser to handle key release event instead of key
press event.

Change-Id: I184040594956abb59f7f921539d22cd5dcc1a41a
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
src/notification-daemon/ui/Popupper.cpp

index 2814a97..bc3e3b4 100644 (file)
@@ -147,7 +147,7 @@ void Popupper::initialize()
 
     elm_win_keygrab_set(m_win, getHomeKey().c_str(), 0, 0, 0, ELM_WIN_KEYGRAB_SHARED);
     elm_win_keygrab_set(m_win, "XF86Back", 0, 0, 0, ELM_WIN_KEYGRAB_TOPMOST);
-    ecore_event_handler_add(ECORE_EVENT_KEY_DOWN, &Popupper::hwKeyClickedCb, this);
+    ecore_event_handler_add(ECORE_EVENT_KEY_UP, &Popupper::hwKeyClickedCb, this);
 }
 
 void Popupper::setLocale()