可以发送< shift>从Emacs到Windows的按键? [英] Can I send a <shift> keypress to Windows from Emacs?
问题描述
有一个函数'w32-toggle-lock-key
,有效地模拟了 capslock , numlock 或 scroll-lock 键。是否有类似的功能来模拟一个 shift 键( not shift + 其他的)? p>
我需要这个的原因是因为我已经将 shift 绑定到Windows中切换语言。
我相信答案是否定的。由于与此答案中讨论的相同原因,即该shift是一个修饰符,Windows正在吞噬按键。
查看Emacs是否响应的最简单的方法一个关键是要求关键的帮助
Ch k< press-key>
如果Emacs告诉你什么绑定到该键,你是金色的。如果Emacs似乎正在等待更多的输入(大约2秒钟后显示在minibuffer中的键),那么你还是很好 - 关键是映射到前缀映射(例如 ESC 或 Cx )。如果Emacs什么都不做,还在等待你在提示符下输入一些东西。
描述键(或点击或菜单项):
那么你知道Emacs还没有收到一个事件。当我按 SHIFT 时,会发生什么。
There is a function 'w32-toggle-lock-key
to, effectively, simulate a press of capslock, numlock, or scroll-lock key. Is there a similar function to simulate a shift key by itself (not shift+something else)?
The reason I need this is because I have shift bound to switch languages in Windows.
I believe the answer is no. For the same reasons discussed in this answer, namely that shift is a modifier, and Windows is swallowing the keypress.
The easiest way to see if Emacs responds to a key is to ask for help on a key
C-h k <press-key>
If Emacs tells you what is bound to that key, you're golden. If Emacs seems to be waiting for more input (and after about 2 seconds shows you the key in the minibuffer), then you're still good - the key is just mapped to a prefix map (e.g. ESC or C-x). If Emacs does nothing and is still waiting for you to type something at the prompt
Describe key (or click or menu item):
then you know Emacs hasn't received an event. This is what happens when I press SHIFT.
这篇关于可以发送< shift>从Emacs到Windows的按键?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!