Hotkeys: fix work ctrl_l key with num lock.

Summary: Need to check CTRL_L and ALT_L bits in ECORE_EVENT_MODIFIER

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2722
This commit is contained in:
Mykyta Biliavskyi 2015-06-22 14:49:17 +09:00 committed by ChunEon Park
parent 7020fec1f3
commit 02af80d3ba
1 changed files with 2 additions and 2 deletions

View File

@ -567,7 +567,7 @@ default_template_insert(app_data *ad)
static Eina_Bool
alt_func(app_data *ad, Ecore_Event_Key *event)
{
if (event->modifiers != ECORE_EVENT_MODIFIER_ALT)
if (!(event->modifiers & ECORE_EVENT_MODIFIER_ALT))
return EINA_FALSE;
//Full Edit View
@ -601,7 +601,7 @@ alt_func(app_data *ad, Ecore_Event_Key *event)
static Eina_Bool
ctrl_func(app_data *ad, Ecore_Event_Key *event)
{
if (event->modifiers != ECORE_EVENT_MODIFIER_CTRL)
if (!(event->modifiers & ECORE_EVENT_MODIFIER_CTRL))
return EINA_FALSE;
//Save