Class
zebkit.web.Clipboard
extends <zebkit.ui.event.Clipboard> |
<zebkit.web> |
Clipboard support class. The class is light abstraction that helps to perform textual data exchange via system (browser) clipboard. Browsers have different approaches and features regarding clipboard implementation and clipboard API. This class hides the native specific and provides simple way to exchange data via clipboard.
zebkit.web.Clipboard
([triggerKeyCode]
)
Parameters:
-
[triggerKeyCode]
<String>a key code that starts triggering clipboard copy paste actions. It depends on platform. On Linux "Control" +
combination should be used, but on Mac OSX "MetaLeft" + xxx. To handle copy, paste and cut event override the following methods: - copy "clipCopy(focusOwnerComponent, data)"
- paste "clipPaste(focusOwnerComponent, data)"
- cut "clipCut(focusOwnerComponent, data)"
private
void
$off ( )
Return focus from a hidden element back to initial one. |
private
void
$on ( )
Pass focus to hidden html element to catch input. |
public
void
write (txt )
Write the given content into clipboard. This method not necessary work on all browsers by default. Many browsers issue security restrictions regarding clipboard data manipulation. Parameters:
|