[ubuntu-uk] re-assigning Print Screen key to open right click menu
Matthew Sturdy
matt.sturdy at gmail.com
Wed Feb 8 16:33:38 UTC 2012
On 8 February 2012 15:44, Gareth France <gareth.france at gmail.com> wrote:
> Also try this:
>
>
> http://askubuntu.com/questions/97748/how-do-i-bind-right-click-to-a-keyboard-shortcut
>
>
Thanks Gareth, this has worked the best so far... adding "xdotool click 3" as
the command works with some applications... but not on all!
It replicates the right click well on OOCalc, but not in
terminator, Chrome, Nautilus.. On these other applications the window takes
focus, but the right click doesn't open the context menu.
Using xev I see this for a normal right click from the USB mouse (trackpad
output is the same):
~~~~~~~~~~~~~~~~~~~~~
ButtonPress event, serial 33, synthetic NO, window 0x5400001,
root 0xae, subw 0x0, time 55611537, (64,83), root:(65,136),
state 0x0, button 3, same_screen YES
ButtonRelease event, serial 33, synthetic NO, window 0x5400001,
root 0xae, subw 0x0, time 55611981, (64,83), root:(65,136),
state 0x400, button 3, same_screen YES
~~~~~~~~~~~~~~~~~~~~~
and this for a "click" using the Print Screen button with xdotool:
~~~~~~~~~~~~~~~~~~~~~
ButtonPress event, serial 33, synthetic NO, window 0x5400001,
root 0xae, subw 0x0, time 55600764, (64,83), root:(65,136),
state 0x0, button 3, same_screen YES
ButtonRelease event, serial 33, synthetic NO, window 0x5400001,
root 0xae, subw 0x0, time 55600764, (64,83), root:(65,136),
state 0x400, button 3, same_screen YES
FocusOut event, serial 33, synthetic NO, window 0x5400001,
mode NotifyUngrab, detail NotifyPointer
FocusIn event, serial 33, synthetic NO, window 0x5400001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 33, synthetic NO, window 0x0,
keys: 4294967214 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
~~~~~~~~~~~~~~~~~~~~~
There seems to be additional FocusOut / FocusIn events in there... not sure
if that is relevant!
Any pointers would be gratefully received at this point!
Cheers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20120208/5dac8cd1/attachment-0001.html>
More information about the ubuntu-uk
mailing list