Anyone interested to help with these questions about Inkscape's handling of keyboard shortcuts (and how to add files for new widgets)?
Being able to switch keymap files or redefine keyboard shortcuts from within Inkscape would be a nice new feature (requested repeatedly by users)…
Forwarded from https://bugs.launchpad.net/bugs/1036059.
thx, ~suv
-------- Original Message -------- Subject: [Bug 1036059] Re: There are no GUI for setting keybindings Date: Wed, 15 Aug 2012 19:19:45 -0000 From: Aapo Rantalainen <1036059@...1882...> Reply-To: Bug 1036059 <1036059@...1882...> To: suv
I started to implement GUI-widget for changing keyboard bindings. Here is video of first prototype: http://www.youtube.com/watch?v=Hvdvz--L6OM
There are many issues where I'm waiting for discussion, help, solution... Patch is not intented to merge as it. It is against rev-11604.
a) I had problem to add new files for compilation, so this patch overwrite font-selector (randomly selected dialog/widget)
b) Inkscape has some 'own' style to handle keybindings. Thus widget on my patch contains converting between 'GDK-modifier' to 'SP-modifier' and back. Is there reason to not use shortcut handling for GDK?
c) Patch handles only primary keys, not secondaries. I'm not sure how they should be handled. I think there are no limit how many secondary key one action could have.
d) Patch doesn't check conflicst. I.e. if key is already assigned.
e) Tip text (and menus) are not updated, but new window shows new accel keys.
f) It doesn't yet save modifications. Maybe the best place is end of the ~/.config/inkscape/keys/default.xml or add one more xml (user_defined.xml).
g) Patch just move things in shortcuts.cpp,verbs.cpp private->public.
-- So what it does: -shows (primary) keybindings of the every verbs (in _verbs) -allow keybindings to be modified
** Patch added: "keybindings_proto_001.patch"
https://bugs.launchpad.net/inkscape/+bug/1036059/+attachment/3262804/+files/...