停止Alt键在Sublime Text 2中显示菜单 [英] Stop Alt key bringing up the menu in Sublime Text 2

查看:153
本文介绍了停止Alt键在Sublime Text 2中显示菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是研究Sublime Text 2的Emacs用户.我重新映射了默认的Emacs按键绑定,并习惯于逐步使用Alt + i,Alt + k,Alt + j,Alt + l,向下,向左和向右.在Sublime Text中重新映射这些键没有任何问题.

I'm an Emacs user looking into Sublime Text 2. I've remapped the default Emacs key bindings and have become accustomed to moving about using Alt+i, Alt+k, Alt+j, Alt+l for up, down, left and right. I haven't had any issues remapping those keys in Sublime Text.

问题在于,即使我在无干扰模式下将其隐藏,只要我使用这些键进行导航,菜单就会弹出.当我按下Alt键时,我想停止显示菜单.

The problem is that whenever I use these keys to navigate the menu pops up even though I've hidden it in distraction free mode. I would like to stop the menu coming up when I press the Alt key.

如果可能的话,我想将显示菜单的键重新映射到其他菜单(例如Alt + space).否则,我想完全禁用Alt键附带的菜单(并使用热键和控制台进行所有操作).

If possible I would like to remap the key for displaying the menu to something else (like Alt+space). Otherwise I would like to disable the menu coming up with the Alt key altogether (and use hot keys and the console for everything).

我正在Windows XP上运行Sublime Text.

I'm running Sublime Text on Windows XP.

推荐答案

我遇到的问题是我重新绑定的键与菜单上的助记符冲突.具体来说,我已经将Alt + i映射到某个东西,同时它也是Find的助记符.

The problem I was having was that a key I was rebinding conflicted with a mnemonic on the menu. Specifically, I had Alt+i mapped to something while it was also the mnemonic for Find.

要解决此问题,我从菜单中删除了助记符,这使菜单停止显示.为此,请转到首选项->浏览软件包,然后打开Default/Main.sublime-menu文件.您可以在其中删除所有助记符":"*",以摆脱助记符.

To fix the problem I removed the mnemonics from the menu, which stopped the menu appearing. To do this go to Preferences -> Browse Packages and open the Default/Main.sublime-menu file. In there you can remove all of the "mnemonic": "*", lines to get rid of the mnemonics.

按alt键仍将弹出菜单.如果要禁用此功能,可以使用以下AutoHotkey脚本(感谢Armin):

Pressing the alt key will still bring up the menu. If you want to disable this you can use the following AutoHotkey script (thanks Armin):

SetTitleMatchMode RegEx
#IfWinActive .*Sublime Text 2.*
    LAlt & esc::return ;This can be any key, not just escape. It's needed to get AutoHotkey to treat Alt as a prefix key.
    ~LAlt::return
#IfWinActive

这只会停止向左Alt弹出菜单,向右Alt仍将照常工作.

This only stops left Alt bringing up the menu, right Alt will still work as usual.

这篇关于停止Alt键在Sublime Text 2中显示菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆