/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <key-grab.h>
// EXTERNAL INCLUDES
-#include <Ecore.h>
#include <Ecore_X.h>
#include <utilX.h>
namespace KeyGrab
{
+bool GrabKeyTopmost( Window window, Dali::KEY daliKey )
+{
+ return GrabKey( window, daliKey, TOPMOST);
+}
+
+bool UngrabKeyTopmost( Window window, Dali::KEY daliKey )
+{
+ return UngrabKey( window, daliKey );
+}
+
bool GrabKey( Window window, Dali::KEY daliKey, KeyGrabMode grabMode )
{
int xGrabMode;
- if( grabMode == TOP_POSITION )
+ if( grabMode == TOPMOST )
{
xGrabMode = TOP_POSITION_GRAB;
}
{
xGrabMode = SHARED_GRAB;
}
+ else if( grabMode == OVERRIDE_EXCLUSIVE )
+ {
+ xGrabMode = OR_EXCLUSIVE_GRAB;
+ }
+ else if( grabMode == EXCLUSIVE )
+ {
+ xGrabMode = EXCLUSIVE_GRAB;
+ }
else
{
return false;