diff options
author | George Mount <mount@google.com> | 2012-01-10 11:24:02 -0800 |
---|---|---|
committer | George Mount <mount@google.com> | 2012-01-18 14:59:21 -0800 |
commit | 3d09531f89238953be9065e0e2c1a755d424d392 (patch) | |
tree | 307f86ff0bc6402a2ff544818a377b3e018c5481 /core/res | |
parent | ea77ed02e44ebd177e3c7e1797d9cb804820ce43 (diff) | |
download | frameworks_base-3d09531f89238953be9065e0e2c1a755d424d392.zip frameworks_base-3d09531f89238953be9065e0e2c1a755d424d392.tar.gz frameworks_base-3d09531f89238953be9065e0e2c1a755d424d392.tar.bz2 |
Add cut and paste to ContentEditable.
Bug 5806267
Use visual selection to determine the webkit selection.
The webkit selection can be used to cut text from an editable
area. It can also be used to do better complex character text
copy.
Webkit change: I194c6d9e2add67151b97092a1a54f5c081296000
Change-Id: I56543d17670a8c98484314c89c7fa6a94cb809e4
Diffstat (limited to 'core/res')
-rw-r--r-- | core/res/res/menu/webview_copy.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/res/res/menu/webview_copy.xml b/core/res/res/menu/webview_copy.xml index 31bcec5..6a1aa51 100644 --- a/core/res/res/menu/webview_copy.xml +++ b/core/res/res/menu/webview_copy.xml @@ -19,11 +19,21 @@ android:title="@string/selectAll" android:showAsAction="ifRoom|withText" /> + <item android:id="@+id/cut" + android:icon="?android:attr/actionModeCutDrawable" + android:title="@string/cut" + android:showAsAction="ifRoom|withText" + /> <item android:id="@+id/copy" android:icon="?android:attr/actionModeCopyDrawable" android:title="@string/copy" android:showAsAction="ifRoom|withText" /> + <item android:id="@+id/paste" + android:icon="?android:attr/actionModePasteDrawable" + android:title="@string/paste" + android:showAsAction="ifRoom|withText" + /> <item android:id="@+id/share" android:icon="?android:attr/actionModeShareDrawable" android:title="@string/share" |