如何找到在 MS Word 中启动粘贴命令的所有方法?

发布于 2024-09-06 08:46:59 字数 230 浏览 6 评论 0原文

我正在开发 MS Word 的加载项,我想创建一个用于粘贴的自定义处理程序(EditPaste 是内置命令)。我可以看到,默认情况下, Ctrl+VShift+Insert 绑定到 EditPaste,并且还有一些按钮也可以启动粘贴。

不幸的是,某些键盘具有额外的按钮/组合,会导致粘贴操作。有没有办法检测这些,可能使用VBA?

I'm working on an add-in for MS Word and I'd like to create a custom handler for pasting (EditPaste is the built-in command). I can see that, by default, Ctrl+V and Shift+Insert are bound to EditPaste, and there are buttons which also initiate a paste.

Unfortunately, some keyboards have additional buttons/combinations which result in a paste action. Is there a way to detect these, possibly using VBA?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

对你而言 2024-09-13 08:46:59

据我所知,无法检测到,但这里有一个列表:

  1. 粘贴 - 来自剪切/复制。
    • 粘贴文本或对象:CTRL + V
    • 选择性粘贴:CTRL + ALT + V< /strong>
    • 仅粘贴格式:CTRL + SHIFT + V
    • 粘贴文本或对象:SHIFT + INSERT
  2. 粘贴 - 来自剪切/复制。 (请注意,A)这些仅适用于Word 2007/2010B),它们是键盘序列,而不是组合。)
    • 保留源格式:Alt,然后 HVK
    • 合并格式:Alt,然后 HV M
    • 仅保留文本:Alt,然后 HVT
  3. 粘贴 - 从 Spike(Spike 就像辅助剪贴板,它不使用 Windows 剪贴板。剪切到 Spike 是 CTRL + F3
    • 从 Spike 粘贴一次:CTRL + SHIFT + F3
    • 多次从 Spike 粘贴:输入单词 spike 并按 F3
  4. 粘贴 - 就一次。 (使用F2选择并剪切,然后将光标重新定位到任意位置)
    • 粘贴:ENTER

Not detectable, as far as I know, but here's a list:

  1. Paste - from a Cut/Copy.
    • Paste text or an object: CTRL + V
    • Paste special: CTRL + ALT + V
    • Paste formatting only: CTRL + SHIFT + V
    • Paste text or an object: SHIFT + INSERT
  2. Paste - from a Cut/Copy. (Note that A) these are for Word 2007/2010 only and B) they are keyboard sequences, not combinations.)
    • Keep Source Formatting: Alt and then H, V, K
    • Merge Formatting: Alt and then H, V, M
    • Keep Text Only: Alt and then H, V, T
  3. Paste - from a Spike (Spike is like a secondary clipboard, it doesn't use Windows Clipboard. Cut to the Spike is CTRL + F3)
    • Paste from the Spike once: CTRL + SHIFT + F3
    • Paste from the Spike multiple times: type the word spike and press F3
  4. Paste - just once. (Select and cut using F2 and then reposition the cursor anywhere)
    • Paste: ENTER
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文