检测到源自 Flash TextField 中默认上下文菜单的粘贴事件
文本字段当前不调度粘贴事件。 当用户使用键盘快捷键进行粘贴时,有一种方法可以通过侦听文本字段中的各种键盘事件来解决该缺点。
有没有办法在粘贴事件源自上下文菜单上的单击时检测到该事件?
Textfields currently do not dispatch paste events.
When the user is using keyboard shortcuts to paste, there's a way to workaround that shortcoming by listening to various keyboard events in the textfield.
Is there a way to detect the paste event when it is originated from a click on the ContextMenu?
当您在
ContextMenu
中选择一个项目时,所选的ContextMenuItem
会调度一个 menuItemSelect 事件。用那个。When you choose an item in a
ContextMenu
, the chosenContextMenuItem
dispatches a menuItemSelect event. Use that.