jpeg pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=83012a0a045c9394794aa18dee913d6116185fc4

commit 83012a0a045c9394794aa18dee913d6116185fc4
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Wed Jun 24 14:53:27 2015 +0900

    Editor zoom: Ctrl + wheel should work even with numlock
    
    When checking the modifiers, only ALT, CTRL, WIN and SHIFT make
    sense in this context.
---
 src/bin/main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/bin/main.c b/src/bin/main.c
index 2c710a9..9232106 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -151,7 +151,9 @@ main_mouse_wheel_cb(void *data, int type EINA_UNUSED, void 
*ev)
    app_data *ad = data;
    Evas_Coord x, y, w, h;
 
-   if (event->modifiers != ECORE_EVENT_MODIFIER_CTRL)
+   if ((event->modifiers & (ECORE_EVENT_MODIFIER_SHIFT | 
ECORE_EVENT_MODIFIER_CTRL
+                            | ECORE_EVENT_MODIFIER_ALT | 
ECORE_EVENT_MODIFIER_WIN))
+       != ECORE_EVENT_MODIFIER_CTRL)
      return ECORE_CALLBACK_PASS_ON;
 
    //View Scale

-- 


Reply via email to