Keyboard – How to Emulate Right Mouse Button Click on Touchscreen

13.04keyboardshortcut-keys

My new touchscreen laptop does not have the menu button (i.e. the one behaves like a right mouse click) – the one usually next to the right ctrl.

since you cannot left click by touch, I am trying to create a custom keyboard Shortcut for Alt GR for this function (under System > Keyboard > Shortcuts > Custom Shortcuts)

When using the xev command with an onboard keyboard (that has the menu button), I have found out that the button info is:

KeyRelease event, serial 42, synthetic NO, window 0x4800001,
    root 0xab, subw 0x0, time 2544690, (1236,607), root:(1302,1050),
    state 0x0, keycode 135 (keysym 0xff67, Menu), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

However, I have no idea what to do with this info…

btw I am using a Ubuntu 13.04.

Any help would be most appreciated…

Best Answer

You need to enable the secondary click (as AliNa commented) with gsettings set org.gnome.desktop.a11y.mouse secondary-click-enabled "true" or with dconf editor.

Then it is possible that Ubuntu handles the touchscreen partially like a touchpad, where a touch does not trigger mouse-press. Instead you need to short-tap + touch-and-hold.

Related Question