[ubuntu-uk] re-assigning Print Screen key to open right click menu

paul sutton zleap at zleap.net
Wed Feb 8 19:22:32 UTC 2012


On 08/02/12 16:33, Matthew Sturdy wrote:
> On 8 February 2012 15:44, Gareth France <gareth.france at gmail.com
> <mailto: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
>
>
>

How would this affect you doing things like using the sysrq functions
which are also mapped to the same key (ok you need to press alt too)

Paul

-- 

--
http://www.zleap.net
http://www.ubuntu.com

skype : psutton111

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20120208/8ca20034/attachment.html>


More information about the ubuntu-uk mailing list