简体   繁体   English

Ubuntu 终端中的 Emacs:元键打开菜单

[英]Emacs in Ubuntu Terminal: Meta key opens menus

I've been learning Emacs in fullscreen -nw mode (terminal) for Ubuntu, and I've run into this annoying problem.我一直在为 Ubuntu 以全屏 -nw 模式(终端)学习 Emacs,但我遇到了这个烦人的问题。 Whenever I press LAlt-[chr] where chr is some character, if that key combination happens to be the shortcut for one of the terminal menus at the top of the screen, the menu will open and nothing will happen in Emacs.每当我按 LAlt-[chr] 时,其中 chr 是某个字符,如果该组合键恰好是屏幕顶部终端菜单之一的快捷方式,则该菜单将打开并且在 Emacs 中不会发生任何事情。 How can I prevent these key combinations from influencing the menu bar?如何防止这些组合键影响菜单栏?

You should be able to disable menu activation by unchecking the correspoding box in the shortcut dialog under Edit.您应该能够通过取消选中“编辑”下快捷对话框中的对应框来禁用菜单激活。

Right-click on the emulator window to make the menubar visible, if it is not visible.如果菜单栏不可见,请右键单击模拟器窗口以使菜单栏可见。

As I am a debian user I'm not sure if this solution still works in ubuntu at least in version 2.30.2 of gnome-terminal it was possible to change it this way.由于我是一个 debian 用户,我不确定这个解决方案是否仍然适用于至少在 gnome-terminal 2.30.2 版的 ubuntu 中,可以通过这种方式进行更改。

Unfortunately the gnome guys seem to to be uninventing the ui so fast, that I'm not sure if it is still possible.不幸的是,侏儒们似乎很快就取消了用户界面,我不确定这是否仍然可能。

In ubuntu 12.04 for gnome terminal:在用于 gnome 终端的 ubuntu 12.04 中:

Go to Edit -> Keyboard shortcuts... and uncheck Enable menu access keys (such as Alt-F to open the File menu) .转到Edit -> Keyboard shortcuts...并取消选中Enable menu access keys (such as Alt-F to open the File menu)

In Xubuntu 18.04 for Xfce Terminal:在 Xfce 终端的 Xubuntu 18.04 中:

  1. Edit -> Preferences -> Advanced Edit -> Preferences -> Advanced
  2. Check Disable all menu access keys (such as Alt-f)选中Disable all menu access keys (such as Alt-f)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM