I needed to select and copy to clipboard a htmleditor field text, simulating the ctrl+a and ctrl+c (fired by a button).
I made some attempts, including Ext.util.KeyMap, but without success.
Any suggestions how to achieve this?
I needed to select and copy to clipboard a htmleditor field text, simulating the ctrl+a and ctrl+c (fired by a button).
I made some attempts, including Ext.util.KeyMap, but without success.
Any suggestions how to achieve this?
Ext.util.KeyMap is not what your looking for, it is the reverse. It lets you define keystrokes that will fire some event.
I would use plain JavaScript for what you are trying to do. But this is not straight forward. Look at this question for guidance : Copy / Put text on the clipboard with FireFox, Safari and Chrome