24

I'm running old Debian machine: Distributor ID: Debian Description: Debian GNU/Linux 5.0.2 (lenny) Release: 5.0.2 Codename: lenny

I open terminal and run Midnight Commander in it. Now I need to quit by pressing F10. But When I do this I'm getting terminal menu:

enter image description here

How to get MC menu and not terminal one by pressing F10?

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
vico
  • 783
  • 3
  • 18
  • 32
  • 1
    Does this answer your question? [Why does F10 in gnome-terminal open the right-click menu?](https://unix.stackexchange.com/questions/40258/why-does-f10-in-gnome-terminal-open-the-right-click-menu). It seems to be generating *duplicate answers*. – Greenonline Nov 19 '21 at 03:21

3 Answers3

25

Go to Edit->Keyboard Shortcuts

And uncheck "Enable the menu shortcut key"

to turn it off.

Reference link : here.

msc
  • 527
  • 5
  • 12
  • 13
    Ubuntu 18.04 edit->preferences->general (uncheck) enable the menu accelerator key (F10 by default) – vic-3 Nov 23 '18 at 14:33
  • Now F10 no longer works in allow application to receive that F10 keystroke value. Debian 11, Gnome-Terminal 3.30.2 – John Greene Apr 09 '20 at 15:50
10

On Ubuntu 20.04.1, Gnome version 3.36.8 it is:

Gnome terminal's "hamburger menu icon"
  > Preferences
    > "General" tab
      > Uncheck the item labeled "Enable the menu accelerator key (F10 by default)"

Just a remark: on the same system, a dconf / gsettings setting exists:

/org/gnome/terminal/legacy/ shortcuts-enabled

Its default value is true. Currently it does not seem to impact / conflict with the choice made in the terminal preferences UI. Nevertheless I believe it may be useful to remain mindful of its existence... Just in case one day it may start to interfere again ;)

Levente
  • 217
  • 2
  • 7
2

The best way I found in gnome 4 on a Fedora 35 to disable F10 shortcut :

gsettings set org.gnome.Terminal.Legacy.Settings menu-accelerator-enabled false

Hope it helps :)

David
  • 121
  • 1