On Wed, 2009-12-30 at 12:28 +0200, Bogdan Cristea wrote:
Is there a way to specify the priority of keyboard shortcuts when the same key sequence is assigned to start an application and to trigger a specific action in a running process ?
Example: CTRL+ALT+C is assigned to start Google Chrome, but in Eclipse the same sequence is used for "Commit ..." action. When the Eclipse window is active and the above sequence is used, Google Chrome is started. In my opinion, in this situation (Eclipse window active) it makes more sense to give a higher priority to the key sequence triggering the "Commit ..." action.
I do not think there is such a thing as priority as you seem to be suggesting. I would think the key press handling goes like this: 1) is it something the kernel catches (ALT-CTRL-DELETE) 2) Is it something the X server catches (CTRL-BS (twice)) 3) Is is something the window manager catches (keys defined in KDE's config, compiz and such) 4) Is it something the active window catches. I do not think you can change the order of these. I think you want to have 4 come before 3. But I doubt this is possible. I know that X could allow this: an X11 app can refuse a key press, and the level above can choose to know this and handle the key. But I do not think window managers look for key presses not handled. It would need to allow this to be able to switch the order of these steps. Your best bet is to redefine the key press it possible. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org