Mf、Mb 绑定在 Mac X11 上不起作用(通过 NX)
一切如常:我已经使用 NX 从 MacBook Pro 登录到我的 Linux 机器,打开了一个终端,然后...M-(Meta-)的键绑定不起作用。 (当然是谈论 bash。)等等。我正在使用连接到 Mac 的 PC 键盘(我无法在狭窄的笔记本电脑键盘上工作)。所以我决定调查一下:使用xev来捕获事件。当我按 PC 键盘上的左“Alt”时,“xev”报告“Meta_L”被按下。问题是,它似乎由于某种原因被忽略(不知道为什么)。
确实很烦人,因为Eclipse也是如此。实际上,所有带有 Alt- 的键绑定都消失了。
我的直觉是使用 xmodmap 强制左 Alt 键实际发出“Alt_L”,但我想听听第二个意见。
Business as usual: I've logged into my Linux machine from my MacBook Pro using NX, opened a terminal, and ... key bindings with M- (Meta-) do not work. (Talking about bash, of course.) Wait for it. I'm using a PC keyboard hooked up to my Mac (I cannot work on a cramped laptop keyboard). So I decided to investigate: used xev to capture events. When I press left 'Alt' on the PC keyboard, 'xev' reports that 'Meta_L' got depressed. Problem is, it seems that it gets ignored for some reason (no idea why).
It is really annoying, because the same is true for Eclipse. Practically all key bindings with Alt- in them are gone.
My hunch would be to use xmodmap to force the left Alt key to actually emit 'Alt_L', but I wanted to hear a second opinion.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,问题在于,根据“xmodmap -pm”,Meta_L 和 Meta_R 不属于 Mod1 特殊修饰符类别。当我把它们搬到那里时,一切都开始工作了。 (事实证明,有些程序错误地认为“Mod1”是 Meta/Alt,并忽略像 Meta_L 这样的键符号。)
It turns out, the problem was that, according to 'xmodmap -pm', Meta_L and Meta_R were not in Mod1 special modifier category. When I moved them there, everything started to work. (Turns out, some programs assume, incorrectly, that 'Mod1' is Meta/Alt, and ignore keysyms like Meta_L.)