Diodon - GTK+ Clipboard Manager

Can't use Crtl+V as shortcut

Reported by Aleve Sicofante on 2012-10-24
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Diodon
Undecided
Unassigned

Bug Description

Diodon won't allow the use of Ctrl-V (instead of Ctrl-Alt-V) as a shortcut.

The weird thing is it worked right after installation, but not after the first logout-login or reboot.

I'm using the stable release under 12.04.1

Oliver Sauder (sao) wrote :

I like the idea that all paste events should be done by Diodon. I have also tested in on my system and it does work in certain circumstances.

However before I go into detailed explanation, in general it is not good idea to overwrite default shortcuts.

So the reason why it worked the first time is that the order how the shortcut are registered matters. So when changing the Shortcut in the Diodon preferences, Diodon is the last application to register the shortcut and therefore wins. After a restart it isn't and cannot be insured to be.

Furthermore does Diodon paste automatically by simulating pressing a key to the application which is enabled. So when the primary selection option is enabled it performs a <Ctrl>Insert. When this option is not enabled it performs a <Ctrl>V.

So if either primary selection option is not enabled or an application does not support <Ctrl>Insert, when using <Ctrl>V as a Diodon hotkey there is no way to paste content into those application anymore. Instead, Diodon will always open its menu... ;).

Hence, I need to mark this bug invalid. Thanks for the suggestion though.

See also Bug #871376 which could be a possibility to avoid assigning already used shortcuts.

Changed in diodon:
status: New → Invalid
Aleve Sicofante (sicofante) wrote :

"Instead, Diodon will always open its menu... ;)."

That's exactly what is happening. Now I understand the loop that's going on. I don't like primary selection enabled for a number of reasons, but if it's enabled by default (I can't remember), this is why it worked the first time.

Is Ctrl-V hardcoded somewhere in the system and in Diodon? Or can it be changed in the system? If it can, Diodon might read the current shortcut and use it for pasting where Ctrl-Insert is not available.

Let's say I can change the system's Ctrl-V to Cltr+Alt+V. Diodon would use that newly defined shorcut instead of Ctrl-V where Ctrl-Insert can't be used. That would avoid the loop.

Yes, I'd love Diodon to become my only pasting mechanism.

Oliver Sauder (sao) wrote :

Unfortunately there is not as each application resp. toolkit has its own paste shortcut which is normally Ctrl+V. However, e.g. Gnome-Terminal uses Ctrl+Shift+V.

So I guess we have to live with the close shortcut Ctrl+Alt+V....

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers