/**
* Select Text in the webview and automatically sends the selected text to the clipboard.
*/
public void swithToSelectAndCopyTextMode() {
try {
KeyEvent shiftPressEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_SHIFT_LEFT, 0, 0);
shiftPressEvent.dispatch(FusionField.currentWindow);
} catch (Exception e) {
throw new AssertionError(e);
}
}
FusionField.currentWindow为要在上面复制的webview对象
* Select Text in the webview and automatically sends the selected text to the clipboard.
*/
public void swithToSelectAndCopyTextMode() {
try {
KeyEvent shiftPressEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_SHIFT_LEFT, 0, 0);
shiftPressEvent.dispatch(FusionField.currentWindow);
} catch (Exception e) {
throw new AssertionError(e);
}
}
FusionField.currentWindow为要在上面复制的webview对象