ignore desktop gadget editor keybinds while editor is hidden

This commit is contained in:
Mike Blumenkrantz 2017-07-28 13:49:30 -04:00
parent 3bda41f895
commit 2675422e9d
1 changed files with 2 additions and 0 deletions

View File

@ -2486,6 +2486,7 @@ _gadget_desklock_clear(void)
static Eina_Bool
_gadget_desklock_key_handler(void *d EINA_UNUSED, int t EINA_UNUSED, Ecore_Event_Key *ev)
{
if (!_editor_site_visible()) return ECORE_CALLBACK_RENEW;
if (eina_streq(ev->key, "Escape"))
{
if (pointer_site)
@ -2564,6 +2565,7 @@ e_gadget_site_desklock_edit(void)
static Eina_Bool
_gadget_desktop_key_handler(void *data, int t EINA_UNUSED, Ecore_Event_Key *ev)
{
if (!_editor_site_visible()) return ECORE_CALLBACK_RENEW;
if (eina_streq(ev->key, "Escape"))
{
if (pointer_site)