Re: Python Help( Want to edit keybord(ZOOM-IN and Out) shortcut of Gimp)
You can't do it with a plugin (which is what you can use Python for in Gimp)... You would need to go rather deep in the keyboard handling in C and recompile your own Gimp version because the spacebar is used for the "pan" function which is always active. You can use "Edit>Keyboard short cuts" to set Zoom-in and Zoom-out to Ctrl-Space and Ctrl-Alt-Space, without the mouse click.
As a seasoned Gimp user I wonder why you would want such a strange setup when Ctr-Mousewheel does the same thing with any decent mouse.
PS: looked at the file and this isn't python code. This is just the Gimp configuration file for the keyboard shortcuts (that looks a bit like Lisp syntax).
Last edited by ofnuts; November 22nd, 2014 at 06:10 PM.
Warning: unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Bookmarks