Keyboard shortcut equivalent to right-clicking












29















I am looking for a keyboard shortcut to raise a context menu using Ubuntu on a MacBook pro. Pressing the keyboard shortcut should have the same effect as right-clicking at the cursor location.



On Windows keyboards, there is a dedicated button for this near the space bar. I have also read about using Shift+F10 or Ctrl+Space, but these have no effect on my system.










share|improve this question




















  • 1





    the key between right Alt + right Ctrl?

    – hytromo
    Aug 1 '12 at 11:49






  • 3





    I think this would work if I had a full windows keyboard, but sadly I am limited to the keys provided on a MacBook.

    – Bill Cheatham
    Aug 1 '12 at 16:04











  • You are using Ubuntu but ultimately it is MacBook Pro.

    – d a i s y
    Jan 20 '17 at 10:35











  • @daisy Which does not necessarily make it offtopic, or otherwise. They are asking how to get a keyboard shortcut that would have the effect of a right click, which is still on topic and such.

    – Thomas Ward
    Jan 20 '17 at 15:16
















29















I am looking for a keyboard shortcut to raise a context menu using Ubuntu on a MacBook pro. Pressing the keyboard shortcut should have the same effect as right-clicking at the cursor location.



On Windows keyboards, there is a dedicated button for this near the space bar. I have also read about using Shift+F10 or Ctrl+Space, but these have no effect on my system.










share|improve this question




















  • 1





    the key between right Alt + right Ctrl?

    – hytromo
    Aug 1 '12 at 11:49






  • 3





    I think this would work if I had a full windows keyboard, but sadly I am limited to the keys provided on a MacBook.

    – Bill Cheatham
    Aug 1 '12 at 16:04











  • You are using Ubuntu but ultimately it is MacBook Pro.

    – d a i s y
    Jan 20 '17 at 10:35











  • @daisy Which does not necessarily make it offtopic, or otherwise. They are asking how to get a keyboard shortcut that would have the effect of a right click, which is still on topic and such.

    – Thomas Ward
    Jan 20 '17 at 15:16














29












29








29


9






I am looking for a keyboard shortcut to raise a context menu using Ubuntu on a MacBook pro. Pressing the keyboard shortcut should have the same effect as right-clicking at the cursor location.



On Windows keyboards, there is a dedicated button for this near the space bar. I have also read about using Shift+F10 or Ctrl+Space, but these have no effect on my system.










share|improve this question
















I am looking for a keyboard shortcut to raise a context menu using Ubuntu on a MacBook pro. Pressing the keyboard shortcut should have the same effect as right-clicking at the cursor location.



On Windows keyboards, there is a dedicated button for this near the space bar. I have also read about using Shift+F10 or Ctrl+Space, but these have no effect on my system.







shortcut-keys menu macbook-pro






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 30 '15 at 9:39









A.B.

69k12169261




69k12169261










asked Jul 23 '12 at 13:44









Bill CheathamBill Cheatham

41741120




41741120








  • 1





    the key between right Alt + right Ctrl?

    – hytromo
    Aug 1 '12 at 11:49






  • 3





    I think this would work if I had a full windows keyboard, but sadly I am limited to the keys provided on a MacBook.

    – Bill Cheatham
    Aug 1 '12 at 16:04











  • You are using Ubuntu but ultimately it is MacBook Pro.

    – d a i s y
    Jan 20 '17 at 10:35











  • @daisy Which does not necessarily make it offtopic, or otherwise. They are asking how to get a keyboard shortcut that would have the effect of a right click, which is still on topic and such.

    – Thomas Ward
    Jan 20 '17 at 15:16














  • 1





    the key between right Alt + right Ctrl?

    – hytromo
    Aug 1 '12 at 11:49






  • 3





    I think this would work if I had a full windows keyboard, but sadly I am limited to the keys provided on a MacBook.

    – Bill Cheatham
    Aug 1 '12 at 16:04











  • You are using Ubuntu but ultimately it is MacBook Pro.

    – d a i s y
    Jan 20 '17 at 10:35











  • @daisy Which does not necessarily make it offtopic, or otherwise. They are asking how to get a keyboard shortcut that would have the effect of a right click, which is still on topic and such.

    – Thomas Ward
    Jan 20 '17 at 15:16








1




1





the key between right Alt + right Ctrl?

– hytromo
Aug 1 '12 at 11:49





the key between right Alt + right Ctrl?

– hytromo
Aug 1 '12 at 11:49




3




3





I think this would work if I had a full windows keyboard, but sadly I am limited to the keys provided on a MacBook.

– Bill Cheatham
Aug 1 '12 at 16:04





I think this would work if I had a full windows keyboard, but sadly I am limited to the keys provided on a MacBook.

– Bill Cheatham
Aug 1 '12 at 16:04













You are using Ubuntu but ultimately it is MacBook Pro.

– d a i s y
Jan 20 '17 at 10:35





You are using Ubuntu but ultimately it is MacBook Pro.

– d a i s y
Jan 20 '17 at 10:35













@daisy Which does not necessarily make it offtopic, or otherwise. They are asking how to get a keyboard shortcut that would have the effect of a right click, which is still on topic and such.

– Thomas Ward
Jan 20 '17 at 15:16





@daisy Which does not necessarily make it offtopic, or otherwise. They are asking how to get a keyboard shortcut that would have the effect of a right click, which is still on topic and such.

– Thomas Ward
Jan 20 '17 at 15:16










8 Answers
8






active

oldest

votes


















25














Shift+F10 worked in my case. I guess the need of Fn depends on the keyboard you are using.



P.S. I used this combination on a file in Nautilus (Ubuntu 14.04 LTS).






share|improve this answer


























  • Thanks! I can confirm this works on a thinkpad T440 ubuntu 16.04

    – sunew
    Sep 4 '18 at 16:43



















10














Try Shift+Fn+F10. This works on Windows and Ubuntu in VirtualBox on OS X for me.






share|improve this answer


























  • Thanks, but I'm not getting any luck with this! Maybe your OSX might be doing this interpretation rather than the Linux itself.

    – Bill Cheatham
    Aug 20 '12 at 5:35











  • This worked on my MacBook Air running Ubuntu 10.04. Thanks!

    – Waldir Leoncio
    Jul 15 '14 at 22:58











  • It works on ubuntu 14.04(Dell) too.

    – blackfyre
    Jun 15 '15 at 17:04



















7














The keysym to trigger the context menu is called Menu. It can be bound to an arbitrary keycode like this:



$ xmodmap -e 'keycode 68 = Menu'


Can be manually triggered from the command line like:



$ xdotool key Menu


And to find out the keycode it is currently bound to one can do:



$ xmodmap -pke | grep Menu


To figure out what keycode a key emits one can use:



$ xev





share|improve this answer
























  • I think this is the best option since modern keyboards have removed the context key, unfortunately. I used keycode 105 which is my right control key.

    – Miladiouss
    Apr 18 '18 at 3:46











  • +1 this is the correct answer - by default in MATE, gnome shift+f10 will work but whatever window manager you use they all end up executing that command. Also this explains how this can be configurable - for example, if in your system doesnt work, look for key bindings configuration and link whatever keys you want with that command and voila. thanks

    – cancerbero
    Oct 25 '18 at 2:26



















5














I generally use the basic:
Ctrl+F10






share|improve this answer



















  • 2





    In nautilus, using Ctrl+F10 would be the same as Shift+F10 (adding Fn if necessary) unless an item is selected, in which case Shift+F10 opens the context-sensitive right-click menu for that specific item. For example, Ctrl+F10 will always say "New Folder", regardless. But if a file "foo.txt" is selected, Shift+F10 opens a menu with (for example) "Open with GVim"; or, if "foo.mp4" is selected, the menu might say "Open with VLC".

    – michael
    Jun 24 '16 at 6:37





















2














Some combination of: (shiftorctrl)+(F10orFnF10), the shifts and ctrls on the left of the keyboard should be used.



If you want the application context menu in Raspbian Pi Linux: alt+space



Context key sometimes works: context key button on some keyboards
it is the one with the list and mouse pointer






share|improve this answer































    2














    Make sure you have a package named xdotool installed.



    Make this application shortcut for the key of your preference:



    xdotool click 3


    Unfortunately this does not work on some applications, but seems to work on chromium-browser and firefox.



    Bonus: For middle click the command is



    xdotool click 2


    Making application shortcuts for keyboard may vary according to the desktop environment used. In Xfce (used in e.g. Xubuntu) making such shortcuts happens easily in Keyboard dialog.






    share|improve this answer

































      1














      My solution was to find an old 2-button mouse and plug it in.



      I tried all the answers I saw above. Most seem to ignore part of the problem, which is that mac keyboards do not have alt or the windows key, in addition to the mouse not having two or more buttons.



      I also did not understand what they expected the cursor/mouse to be doing while you hit shift-f10 or whatever. I want to lock an icon to the launcher, there is no way to select it first and then hit some key sequence. I can hover over it, or I can left-click it. Left-click and hold, then key sequnce while holding? Doesn't seem to work.



      The answer above with xmodmap and xev commands seems like it might point in the right direction. But It's more like a "the solution exists" rather than an actual solution. Which key can I remap without messing things up? Shift-f10 seems to do nothing now, how would I use xmodmap to map menu to shift-f10? At least it provides a place to start the web search.



      Also, the menu that comes up when I invoke "xdotool key menu" while hovering the mouse over something is not the same menu that comes up when I right-click on the same item. So "menu" is not quite what the OP asked for.






      share|improve this answer
























      • My MacBook keyboard has two alt keys. And the cmd keys act as Super keys like windows keys.

        – jarno
        Jul 27 '18 at 11:28











      • xdotool click 3 does the trick. See my answer.

        – jarno
        Jul 27 '18 at 11:34



















      0














      The keybinding for Mac is CTRL+SPACE. This should open the right click or "context menu".



      For linux, the combo is supposed to be CTRL+F10 and as stated, you may need to toggle or hold down the fn key as well.



      However, you have mentioned, this does not work.



      So, you may need to use the set keybinding for Mac instead as you are running linux on a Mac instead of a PC.



      Click here for more info and a more complete list of keybindings.






      share|improve this answer























        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "89"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f167088%2fkeyboard-shortcut-equivalent-to-right-clicking%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        8 Answers
        8






        active

        oldest

        votes








        8 Answers
        8






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        25














        Shift+F10 worked in my case. I guess the need of Fn depends on the keyboard you are using.



        P.S. I used this combination on a file in Nautilus (Ubuntu 14.04 LTS).






        share|improve this answer


























        • Thanks! I can confirm this works on a thinkpad T440 ubuntu 16.04

          – sunew
          Sep 4 '18 at 16:43
















        25














        Shift+F10 worked in my case. I guess the need of Fn depends on the keyboard you are using.



        P.S. I used this combination on a file in Nautilus (Ubuntu 14.04 LTS).






        share|improve this answer


























        • Thanks! I can confirm this works on a thinkpad T440 ubuntu 16.04

          – sunew
          Sep 4 '18 at 16:43














        25












        25








        25







        Shift+F10 worked in my case. I guess the need of Fn depends on the keyboard you are using.



        P.S. I used this combination on a file in Nautilus (Ubuntu 14.04 LTS).






        share|improve this answer















        Shift+F10 worked in my case. I guess the need of Fn depends on the keyboard you are using.



        P.S. I used this combination on a file in Nautilus (Ubuntu 14.04 LTS).







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 30 '15 at 9:40









        Fabby

        26.8k1360161




        26.8k1360161










        answered Mar 30 '15 at 7:58









        curi0us-m0nkeycuri0us-m0nkey

        452610




        452610













        • Thanks! I can confirm this works on a thinkpad T440 ubuntu 16.04

          – sunew
          Sep 4 '18 at 16:43



















        • Thanks! I can confirm this works on a thinkpad T440 ubuntu 16.04

          – sunew
          Sep 4 '18 at 16:43

















        Thanks! I can confirm this works on a thinkpad T440 ubuntu 16.04

        – sunew
        Sep 4 '18 at 16:43





        Thanks! I can confirm this works on a thinkpad T440 ubuntu 16.04

        – sunew
        Sep 4 '18 at 16:43













        10














        Try Shift+Fn+F10. This works on Windows and Ubuntu in VirtualBox on OS X for me.






        share|improve this answer


























        • Thanks, but I'm not getting any luck with this! Maybe your OSX might be doing this interpretation rather than the Linux itself.

          – Bill Cheatham
          Aug 20 '12 at 5:35











        • This worked on my MacBook Air running Ubuntu 10.04. Thanks!

          – Waldir Leoncio
          Jul 15 '14 at 22:58











        • It works on ubuntu 14.04(Dell) too.

          – blackfyre
          Jun 15 '15 at 17:04
















        10














        Try Shift+Fn+F10. This works on Windows and Ubuntu in VirtualBox on OS X for me.






        share|improve this answer


























        • Thanks, but I'm not getting any luck with this! Maybe your OSX might be doing this interpretation rather than the Linux itself.

          – Bill Cheatham
          Aug 20 '12 at 5:35











        • This worked on my MacBook Air running Ubuntu 10.04. Thanks!

          – Waldir Leoncio
          Jul 15 '14 at 22:58











        • It works on ubuntu 14.04(Dell) too.

          – blackfyre
          Jun 15 '15 at 17:04














        10












        10








        10







        Try Shift+Fn+F10. This works on Windows and Ubuntu in VirtualBox on OS X for me.






        share|improve this answer















        Try Shift+Fn+F10. This works on Windows and Ubuntu in VirtualBox on OS X for me.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 11 '15 at 16:22









        curi0us-m0nkey

        452610




        452610










        answered Aug 19 '12 at 17:07









        pratnalapratnala

        52931131




        52931131













        • Thanks, but I'm not getting any luck with this! Maybe your OSX might be doing this interpretation rather than the Linux itself.

          – Bill Cheatham
          Aug 20 '12 at 5:35











        • This worked on my MacBook Air running Ubuntu 10.04. Thanks!

          – Waldir Leoncio
          Jul 15 '14 at 22:58











        • It works on ubuntu 14.04(Dell) too.

          – blackfyre
          Jun 15 '15 at 17:04



















        • Thanks, but I'm not getting any luck with this! Maybe your OSX might be doing this interpretation rather than the Linux itself.

          – Bill Cheatham
          Aug 20 '12 at 5:35











        • This worked on my MacBook Air running Ubuntu 10.04. Thanks!

          – Waldir Leoncio
          Jul 15 '14 at 22:58











        • It works on ubuntu 14.04(Dell) too.

          – blackfyre
          Jun 15 '15 at 17:04

















        Thanks, but I'm not getting any luck with this! Maybe your OSX might be doing this interpretation rather than the Linux itself.

        – Bill Cheatham
        Aug 20 '12 at 5:35





        Thanks, but I'm not getting any luck with this! Maybe your OSX might be doing this interpretation rather than the Linux itself.

        – Bill Cheatham
        Aug 20 '12 at 5:35













        This worked on my MacBook Air running Ubuntu 10.04. Thanks!

        – Waldir Leoncio
        Jul 15 '14 at 22:58





        This worked on my MacBook Air running Ubuntu 10.04. Thanks!

        – Waldir Leoncio
        Jul 15 '14 at 22:58













        It works on ubuntu 14.04(Dell) too.

        – blackfyre
        Jun 15 '15 at 17:04





        It works on ubuntu 14.04(Dell) too.

        – blackfyre
        Jun 15 '15 at 17:04











        7














        The keysym to trigger the context menu is called Menu. It can be bound to an arbitrary keycode like this:



        $ xmodmap -e 'keycode 68 = Menu'


        Can be manually triggered from the command line like:



        $ xdotool key Menu


        And to find out the keycode it is currently bound to one can do:



        $ xmodmap -pke | grep Menu


        To figure out what keycode a key emits one can use:



        $ xev





        share|improve this answer
























        • I think this is the best option since modern keyboards have removed the context key, unfortunately. I used keycode 105 which is my right control key.

          – Miladiouss
          Apr 18 '18 at 3:46











        • +1 this is the correct answer - by default in MATE, gnome shift+f10 will work but whatever window manager you use they all end up executing that command. Also this explains how this can be configurable - for example, if in your system doesnt work, look for key bindings configuration and link whatever keys you want with that command and voila. thanks

          – cancerbero
          Oct 25 '18 at 2:26
















        7














        The keysym to trigger the context menu is called Menu. It can be bound to an arbitrary keycode like this:



        $ xmodmap -e 'keycode 68 = Menu'


        Can be manually triggered from the command line like:



        $ xdotool key Menu


        And to find out the keycode it is currently bound to one can do:



        $ xmodmap -pke | grep Menu


        To figure out what keycode a key emits one can use:



        $ xev





        share|improve this answer
























        • I think this is the best option since modern keyboards have removed the context key, unfortunately. I used keycode 105 which is my right control key.

          – Miladiouss
          Apr 18 '18 at 3:46











        • +1 this is the correct answer - by default in MATE, gnome shift+f10 will work but whatever window manager you use they all end up executing that command. Also this explains how this can be configurable - for example, if in your system doesnt work, look for key bindings configuration and link whatever keys you want with that command and voila. thanks

          – cancerbero
          Oct 25 '18 at 2:26














        7












        7








        7







        The keysym to trigger the context menu is called Menu. It can be bound to an arbitrary keycode like this:



        $ xmodmap -e 'keycode 68 = Menu'


        Can be manually triggered from the command line like:



        $ xdotool key Menu


        And to find out the keycode it is currently bound to one can do:



        $ xmodmap -pke | grep Menu


        To figure out what keycode a key emits one can use:



        $ xev





        share|improve this answer













        The keysym to trigger the context menu is called Menu. It can be bound to an arbitrary keycode like this:



        $ xmodmap -e 'keycode 68 = Menu'


        Can be manually triggered from the command line like:



        $ xdotool key Menu


        And to find out the keycode it is currently bound to one can do:



        $ xmodmap -pke | grep Menu


        To figure out what keycode a key emits one can use:



        $ xev






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 21 '18 at 11:06









        GrumbelGrumbel

        2,74332541




        2,74332541













        • I think this is the best option since modern keyboards have removed the context key, unfortunately. I used keycode 105 which is my right control key.

          – Miladiouss
          Apr 18 '18 at 3:46











        • +1 this is the correct answer - by default in MATE, gnome shift+f10 will work but whatever window manager you use they all end up executing that command. Also this explains how this can be configurable - for example, if in your system doesnt work, look for key bindings configuration and link whatever keys you want with that command and voila. thanks

          – cancerbero
          Oct 25 '18 at 2:26



















        • I think this is the best option since modern keyboards have removed the context key, unfortunately. I used keycode 105 which is my right control key.

          – Miladiouss
          Apr 18 '18 at 3:46











        • +1 this is the correct answer - by default in MATE, gnome shift+f10 will work but whatever window manager you use they all end up executing that command. Also this explains how this can be configurable - for example, if in your system doesnt work, look for key bindings configuration and link whatever keys you want with that command and voila. thanks

          – cancerbero
          Oct 25 '18 at 2:26

















        I think this is the best option since modern keyboards have removed the context key, unfortunately. I used keycode 105 which is my right control key.

        – Miladiouss
        Apr 18 '18 at 3:46





        I think this is the best option since modern keyboards have removed the context key, unfortunately. I used keycode 105 which is my right control key.

        – Miladiouss
        Apr 18 '18 at 3:46













        +1 this is the correct answer - by default in MATE, gnome shift+f10 will work but whatever window manager you use they all end up executing that command. Also this explains how this can be configurable - for example, if in your system doesnt work, look for key bindings configuration and link whatever keys you want with that command and voila. thanks

        – cancerbero
        Oct 25 '18 at 2:26





        +1 this is the correct answer - by default in MATE, gnome shift+f10 will work but whatever window manager you use they all end up executing that command. Also this explains how this can be configurable - for example, if in your system doesnt work, look for key bindings configuration and link whatever keys you want with that command and voila. thanks

        – cancerbero
        Oct 25 '18 at 2:26











        5














        I generally use the basic:
        Ctrl+F10






        share|improve this answer



















        • 2





          In nautilus, using Ctrl+F10 would be the same as Shift+F10 (adding Fn if necessary) unless an item is selected, in which case Shift+F10 opens the context-sensitive right-click menu for that specific item. For example, Ctrl+F10 will always say "New Folder", regardless. But if a file "foo.txt" is selected, Shift+F10 opens a menu with (for example) "Open with GVim"; or, if "foo.mp4" is selected, the menu might say "Open with VLC".

          – michael
          Jun 24 '16 at 6:37


















        5














        I generally use the basic:
        Ctrl+F10






        share|improve this answer



















        • 2





          In nautilus, using Ctrl+F10 would be the same as Shift+F10 (adding Fn if necessary) unless an item is selected, in which case Shift+F10 opens the context-sensitive right-click menu for that specific item. For example, Ctrl+F10 will always say "New Folder", regardless. But if a file "foo.txt" is selected, Shift+F10 opens a menu with (for example) "Open with GVim"; or, if "foo.mp4" is selected, the menu might say "Open with VLC".

          – michael
          Jun 24 '16 at 6:37
















        5












        5








        5







        I generally use the basic:
        Ctrl+F10






        share|improve this answer













        I generally use the basic:
        Ctrl+F10







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jul 3 '14 at 17:40









        nikcnikc

        15111




        15111








        • 2





          In nautilus, using Ctrl+F10 would be the same as Shift+F10 (adding Fn if necessary) unless an item is selected, in which case Shift+F10 opens the context-sensitive right-click menu for that specific item. For example, Ctrl+F10 will always say "New Folder", regardless. But if a file "foo.txt" is selected, Shift+F10 opens a menu with (for example) "Open with GVim"; or, if "foo.mp4" is selected, the menu might say "Open with VLC".

          – michael
          Jun 24 '16 at 6:37
















        • 2





          In nautilus, using Ctrl+F10 would be the same as Shift+F10 (adding Fn if necessary) unless an item is selected, in which case Shift+F10 opens the context-sensitive right-click menu for that specific item. For example, Ctrl+F10 will always say "New Folder", regardless. But if a file "foo.txt" is selected, Shift+F10 opens a menu with (for example) "Open with GVim"; or, if "foo.mp4" is selected, the menu might say "Open with VLC".

          – michael
          Jun 24 '16 at 6:37










        2




        2





        In nautilus, using Ctrl+F10 would be the same as Shift+F10 (adding Fn if necessary) unless an item is selected, in which case Shift+F10 opens the context-sensitive right-click menu for that specific item. For example, Ctrl+F10 will always say "New Folder", regardless. But if a file "foo.txt" is selected, Shift+F10 opens a menu with (for example) "Open with GVim"; or, if "foo.mp4" is selected, the menu might say "Open with VLC".

        – michael
        Jun 24 '16 at 6:37







        In nautilus, using Ctrl+F10 would be the same as Shift+F10 (adding Fn if necessary) unless an item is selected, in which case Shift+F10 opens the context-sensitive right-click menu for that specific item. For example, Ctrl+F10 will always say "New Folder", regardless. But if a file "foo.txt" is selected, Shift+F10 opens a menu with (for example) "Open with GVim"; or, if "foo.mp4" is selected, the menu might say "Open with VLC".

        – michael
        Jun 24 '16 at 6:37













        2














        Some combination of: (shiftorctrl)+(F10orFnF10), the shifts and ctrls on the left of the keyboard should be used.



        If you want the application context menu in Raspbian Pi Linux: alt+space



        Context key sometimes works: context key button on some keyboards
        it is the one with the list and mouse pointer






        share|improve this answer




























          2














          Some combination of: (shiftorctrl)+(F10orFnF10), the shifts and ctrls on the left of the keyboard should be used.



          If you want the application context menu in Raspbian Pi Linux: alt+space



          Context key sometimes works: context key button on some keyboards
          it is the one with the list and mouse pointer






          share|improve this answer


























            2












            2








            2







            Some combination of: (shiftorctrl)+(F10orFnF10), the shifts and ctrls on the left of the keyboard should be used.



            If you want the application context menu in Raspbian Pi Linux: alt+space



            Context key sometimes works: context key button on some keyboards
            it is the one with the list and mouse pointer






            share|improve this answer













            Some combination of: (shiftorctrl)+(F10orFnF10), the shifts and ctrls on the left of the keyboard should be used.



            If you want the application context menu in Raspbian Pi Linux: alt+space



            Context key sometimes works: context key button on some keyboards
            it is the one with the list and mouse pointer







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 20 '17 at 9:34









            xxjjnnxxjjnn

            4481612




            4481612























                2














                Make sure you have a package named xdotool installed.



                Make this application shortcut for the key of your preference:



                xdotool click 3


                Unfortunately this does not work on some applications, but seems to work on chromium-browser and firefox.



                Bonus: For middle click the command is



                xdotool click 2


                Making application shortcuts for keyboard may vary according to the desktop environment used. In Xfce (used in e.g. Xubuntu) making such shortcuts happens easily in Keyboard dialog.






                share|improve this answer






























                  2














                  Make sure you have a package named xdotool installed.



                  Make this application shortcut for the key of your preference:



                  xdotool click 3


                  Unfortunately this does not work on some applications, but seems to work on chromium-browser and firefox.



                  Bonus: For middle click the command is



                  xdotool click 2


                  Making application shortcuts for keyboard may vary according to the desktop environment used. In Xfce (used in e.g. Xubuntu) making such shortcuts happens easily in Keyboard dialog.






                  share|improve this answer




























                    2












                    2








                    2







                    Make sure you have a package named xdotool installed.



                    Make this application shortcut for the key of your preference:



                    xdotool click 3


                    Unfortunately this does not work on some applications, but seems to work on chromium-browser and firefox.



                    Bonus: For middle click the command is



                    xdotool click 2


                    Making application shortcuts for keyboard may vary according to the desktop environment used. In Xfce (used in e.g. Xubuntu) making such shortcuts happens easily in Keyboard dialog.






                    share|improve this answer















                    Make sure you have a package named xdotool installed.



                    Make this application shortcut for the key of your preference:



                    xdotool click 3


                    Unfortunately this does not work on some applications, but seems to work on chromium-browser and firefox.



                    Bonus: For middle click the command is



                    xdotool click 2


                    Making application shortcuts for keyboard may vary according to the desktop environment used. In Xfce (used in e.g. Xubuntu) making such shortcuts happens easily in Keyboard dialog.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Jan 13 at 6:59

























                    answered Jul 27 '18 at 11:22









                    jarnojarno

                    1,77131947




                    1,77131947























                        1














                        My solution was to find an old 2-button mouse and plug it in.



                        I tried all the answers I saw above. Most seem to ignore part of the problem, which is that mac keyboards do not have alt or the windows key, in addition to the mouse not having two or more buttons.



                        I also did not understand what they expected the cursor/mouse to be doing while you hit shift-f10 or whatever. I want to lock an icon to the launcher, there is no way to select it first and then hit some key sequence. I can hover over it, or I can left-click it. Left-click and hold, then key sequnce while holding? Doesn't seem to work.



                        The answer above with xmodmap and xev commands seems like it might point in the right direction. But It's more like a "the solution exists" rather than an actual solution. Which key can I remap without messing things up? Shift-f10 seems to do nothing now, how would I use xmodmap to map menu to shift-f10? At least it provides a place to start the web search.



                        Also, the menu that comes up when I invoke "xdotool key menu" while hovering the mouse over something is not the same menu that comes up when I right-click on the same item. So "menu" is not quite what the OP asked for.






                        share|improve this answer
























                        • My MacBook keyboard has two alt keys. And the cmd keys act as Super keys like windows keys.

                          – jarno
                          Jul 27 '18 at 11:28











                        • xdotool click 3 does the trick. See my answer.

                          – jarno
                          Jul 27 '18 at 11:34
















                        1














                        My solution was to find an old 2-button mouse and plug it in.



                        I tried all the answers I saw above. Most seem to ignore part of the problem, which is that mac keyboards do not have alt or the windows key, in addition to the mouse not having two or more buttons.



                        I also did not understand what they expected the cursor/mouse to be doing while you hit shift-f10 or whatever. I want to lock an icon to the launcher, there is no way to select it first and then hit some key sequence. I can hover over it, or I can left-click it. Left-click and hold, then key sequnce while holding? Doesn't seem to work.



                        The answer above with xmodmap and xev commands seems like it might point in the right direction. But It's more like a "the solution exists" rather than an actual solution. Which key can I remap without messing things up? Shift-f10 seems to do nothing now, how would I use xmodmap to map menu to shift-f10? At least it provides a place to start the web search.



                        Also, the menu that comes up when I invoke "xdotool key menu" while hovering the mouse over something is not the same menu that comes up when I right-click on the same item. So "menu" is not quite what the OP asked for.






                        share|improve this answer
























                        • My MacBook keyboard has two alt keys. And the cmd keys act as Super keys like windows keys.

                          – jarno
                          Jul 27 '18 at 11:28











                        • xdotool click 3 does the trick. See my answer.

                          – jarno
                          Jul 27 '18 at 11:34














                        1












                        1








                        1







                        My solution was to find an old 2-button mouse and plug it in.



                        I tried all the answers I saw above. Most seem to ignore part of the problem, which is that mac keyboards do not have alt or the windows key, in addition to the mouse not having two or more buttons.



                        I also did not understand what they expected the cursor/mouse to be doing while you hit shift-f10 or whatever. I want to lock an icon to the launcher, there is no way to select it first and then hit some key sequence. I can hover over it, or I can left-click it. Left-click and hold, then key sequnce while holding? Doesn't seem to work.



                        The answer above with xmodmap and xev commands seems like it might point in the right direction. But It's more like a "the solution exists" rather than an actual solution. Which key can I remap without messing things up? Shift-f10 seems to do nothing now, how would I use xmodmap to map menu to shift-f10? At least it provides a place to start the web search.



                        Also, the menu that comes up when I invoke "xdotool key menu" while hovering the mouse over something is not the same menu that comes up when I right-click on the same item. So "menu" is not quite what the OP asked for.






                        share|improve this answer













                        My solution was to find an old 2-button mouse and plug it in.



                        I tried all the answers I saw above. Most seem to ignore part of the problem, which is that mac keyboards do not have alt or the windows key, in addition to the mouse not having two or more buttons.



                        I also did not understand what they expected the cursor/mouse to be doing while you hit shift-f10 or whatever. I want to lock an icon to the launcher, there is no way to select it first and then hit some key sequence. I can hover over it, or I can left-click it. Left-click and hold, then key sequnce while holding? Doesn't seem to work.



                        The answer above with xmodmap and xev commands seems like it might point in the right direction. But It's more like a "the solution exists" rather than an actual solution. Which key can I remap without messing things up? Shift-f10 seems to do nothing now, how would I use xmodmap to map menu to shift-f10? At least it provides a place to start the web search.



                        Also, the menu that comes up when I invoke "xdotool key menu" while hovering the mouse over something is not the same menu that comes up when I right-click on the same item. So "menu" is not quite what the OP asked for.







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered May 10 '18 at 17:35









                        DaveDave

                        111




                        111













                        • My MacBook keyboard has two alt keys. And the cmd keys act as Super keys like windows keys.

                          – jarno
                          Jul 27 '18 at 11:28











                        • xdotool click 3 does the trick. See my answer.

                          – jarno
                          Jul 27 '18 at 11:34



















                        • My MacBook keyboard has two alt keys. And the cmd keys act as Super keys like windows keys.

                          – jarno
                          Jul 27 '18 at 11:28











                        • xdotool click 3 does the trick. See my answer.

                          – jarno
                          Jul 27 '18 at 11:34

















                        My MacBook keyboard has two alt keys. And the cmd keys act as Super keys like windows keys.

                        – jarno
                        Jul 27 '18 at 11:28





                        My MacBook keyboard has two alt keys. And the cmd keys act as Super keys like windows keys.

                        – jarno
                        Jul 27 '18 at 11:28













                        xdotool click 3 does the trick. See my answer.

                        – jarno
                        Jul 27 '18 at 11:34





                        xdotool click 3 does the trick. See my answer.

                        – jarno
                        Jul 27 '18 at 11:34











                        0














                        The keybinding for Mac is CTRL+SPACE. This should open the right click or "context menu".



                        For linux, the combo is supposed to be CTRL+F10 and as stated, you may need to toggle or hold down the fn key as well.



                        However, you have mentioned, this does not work.



                        So, you may need to use the set keybinding for Mac instead as you are running linux on a Mac instead of a PC.



                        Click here for more info and a more complete list of keybindings.






                        share|improve this answer




























                          0














                          The keybinding for Mac is CTRL+SPACE. This should open the right click or "context menu".



                          For linux, the combo is supposed to be CTRL+F10 and as stated, you may need to toggle or hold down the fn key as well.



                          However, you have mentioned, this does not work.



                          So, you may need to use the set keybinding for Mac instead as you are running linux on a Mac instead of a PC.



                          Click here for more info and a more complete list of keybindings.






                          share|improve this answer


























                            0












                            0








                            0







                            The keybinding for Mac is CTRL+SPACE. This should open the right click or "context menu".



                            For linux, the combo is supposed to be CTRL+F10 and as stated, you may need to toggle or hold down the fn key as well.



                            However, you have mentioned, this does not work.



                            So, you may need to use the set keybinding for Mac instead as you are running linux on a Mac instead of a PC.



                            Click here for more info and a more complete list of keybindings.






                            share|improve this answer













                            The keybinding for Mac is CTRL+SPACE. This should open the right click or "context menu".



                            For linux, the combo is supposed to be CTRL+F10 and as stated, you may need to toggle or hold down the fn key as well.



                            However, you have mentioned, this does not work.



                            So, you may need to use the set keybinding for Mac instead as you are running linux on a Mac instead of a PC.



                            Click here for more info and a more complete list of keybindings.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jan 29 '17 at 16:51









                            mchidmchid

                            23k25284




                            23k25284






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Ask Ubuntu!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f167088%2fkeyboard-shortcut-equivalent-to-right-clicking%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                How to change which sound is reproduced for terminal bell?

                                Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                                Can I use Tabulator js library in my java Spring + Thymeleaf project?