【问题标题】:In Eclipse Emacs mode, is there any way to remap or add the Alt key to the Esc key?在 Eclipse Emacs 模式下,有没有办法将 Alt 键重新映射或添加到 Esc 键?
【发布时间】:2011-09-26 23:18:34
【问题描述】:

我习惯了 Emacs 使用 Esc 作为 Metakey。在 Eclipse 中,我可以将 Esc 键更改为 Alt 键吗?

【问题讨论】:

  • +1。我在使用 Eclipse 时一直想知道这一点。

标签: eclipse emacs keymapping


【解决方案1】:

不,我认为没有办法做到这一点。 relevant Eclipse UI docs 状态:

可识别的修饰键是 M1、M2、M3、M4、ALT、COMMAND、CTRL 和 SHIFT。

ESC 只是一个“普通”键。 Emacs 专门处理 ESC,因此它的作用类似于修饰符。

【讨论】:

    【解决方案2】:

    在 windows 平台上,您可以使用 AutoHotkey 将 Esc 重新映射到 Alt

    只需将其添加到您的 Autohotkey 脚本中即可:

    #IfWinActive ahk_class SWT_Window0
    $Esc::Alt
    #IfWinActive
    

    您可能需要调整第一行以匹配 Eclipse 窗口的类(使用 Autohokey 中提供的 windows spy 工具)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-02-21
      • 1970-01-01
      • 2014-08-15
      • 2013-12-09
      • 1970-01-01
      • 2021-06-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多