Is there any possibility to assing keyboard shortcut to some EOG plugin?

Is there any possibility to assing keyboard shortcut to activate some EOG plugin?

According to Modify Eye-of-Gnome (EoG) keyboard shortcuts - Ask Ubuntu old accels mechanism is disabled, so … any other ways exist?
May be something that can be called from python code of the eog plugin?
Something like «g_signal_connect» to connect keyboard processing, but may be there exists some python example?

Well, if you want to add Spacebar as shortcut, this worked for me in the Python Console:

app=Eog.Application.get_instance()
accels=app.get_accels_for_action("win.go-next")
accels.append('space')
app.set_accels_for_action("win.go-next", accels)

Do note though that some keys like Spacebar or Return may cause conflicts in certain situations like the menus.

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.