有没有办法允许在 CTRL-V 之上使用 Shift-Insert 从剪贴板进行粘贴?
我知道您可以通过在控件中单击鼠标右键来使用上下文菜单来选择剪切、复制、粘贴等。我还注意到您可以使用 Windows 键盘快捷键 CTRL-C 进行复制和 CTRL -V 表示粘贴。
Windows 支持本机 CTRL-Insert(用于复制)和 SHIFT-Insert(用于粘贴)。
然而,在 Flex 中,这些似乎不起作用。有谁能够允许这些键盘事件吗?任何解决方案表示赞赏。
I know that you can use the context menu using a right-mouse-click in a control to choose to cut, copy, paste, etc. I've also noticed that you can use the windows keyboard shortcuts CTRL-C for Copy and CTRL-V for Paste.
Windows supports native CTRL-Insert (for copy) and SHIFT-Insert (for paste).
However, within Flex, it seems these do not appear to work. Has anyone been able to either allow these keyboard events? Any solutions are appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Clipboard 类从 Flash Player 10 开始可用。
Clipboard class is available starting from Flash Player 10.
注意:操作系统和 Web 浏览器将先于 Adobe Flash Player 或 AIR 处理键盘事件。例如,在 Microsoft Internet Explorer 中,按 Ctrl+W 会在任何包含的 SWF 文件调度键盘事件之前关闭浏览器窗口。
您可以执行与此类似的操作
然后写入操作系统剪贴板:
从操作系统剪贴板读取:
Note: The operating system and the web browser will process keyboard events before Adobe Flash Player or AIR. For example, in Microsoft Internet Explorer, pressing Ctrl+W closes the browser window before any contained SWF file dispatches a keyboard event.
You can just do something similar to this
Then To write to the operating system clipboard:
To read from the operating system clipboard: