6 gnome command-line keyboard shortcut-keys tui
我使用Midnight Commander、 和 等应用程序htop,但是退出时遇到问题,我被迫终止进程,或者自己单击退出按钮(如果有的话),因为在很多 TUI 中没有。问题是大多数人都说按F10退出,但是当按下该键时,我只是打开下拉File菜单:
所以我无法停止使用键盘。我正在使用gnome-terminal,我已经在 中测试过xfce4-terminal,问题也存在。那么为什么会发生这种情况呢?是否有任何解决方案,以便它不会启动此下拉菜单,而是执行其应有的操作并退出?
操作系统信息:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.04
Release: 15.04
Codename: vivid
Flavour: Gnome
Gnome Version: 3.16
Run Code Online (Sandbox Code Playgroud)
1. 通过终端偏好设置
打开你的gnome-terminal和Preferences
禁用该条目Enable the menu accelerator key (F10 by default)

2.通过命令行
gsettings set org.gnome.Terminal.Legacy.Settings menu-accelerator-enabled false
Run Code Online (Sandbox Code Playgroud)
3. 通过dconf-editor
打开dconf-editor(sudo apt-get install dconf-editor)
导航org.gnome.terminal.legacy
menu-accelerator-enabled取消选择右窗格中的条目