diff options
author | James Cook <jamescook@google.com> | 2015-02-11 10:46:44 -0800 |
---|---|---|
committer | James Cook <jamescook@google.com> | 2015-02-19 10:32:14 -0800 |
commit | 9201e797833f35b9afb219f88c10d3b6fda02a4e (patch) | |
tree | d5270b1fd4f2625670d4b722d5f9b9b871791b81 /api | |
parent | 3558752ec77f455bbabc86b3178dfb294edf5aff (diff) | |
download | frameworks_base-9201e797833f35b9afb219f88c10d3b6fda02a4e.zip frameworks_base-9201e797833f35b9afb219f88c10d3b6fda02a4e.tar.gz frameworks_base-9201e797833f35b9afb219f88c10d3b6fda02a4e.tar.bz2 |
Add basic support for Ctrl-Z to editable TextViews
* Add an UndoManager to the Editor for each editable TextView
* Record operations as being owned by that Editor
* Parcel the undo state
* Wire hardware keyboard shortcuts Ctrl-Z for undo and Ctrl-Shift-Z
for redo into TextView shortcut handling.
* Expose IDs for "undo" and "redo" for symmetry with cut/copy/paste.
Tests in CTS TextViewTest will land separately in ag/635321
Bug: 19332904
Change-Id: Ibd23843f86b4cd556751faa0b3ad1f35d6d49785
Diffstat (limited to 'api')
-rw-r--r-- | api/current.txt | 2 | ||||
-rw-r--r-- | api/system-current.txt | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index 7d8b892..cd74fe5 100644 --- a/api/current.txt +++ b/api/current.txt @@ -1711,6 +1711,7 @@ package android { field public static final int paste = 16908322; // 0x1020022 field public static final int primary = 16908300; // 0x102000c field public static final int progress = 16908301; // 0x102000d + field public static final int redo = 16908338; // 0x1020032 field public static final int secondaryProgress = 16908303; // 0x102000f field public static final int selectAll = 16908319; // 0x102001f field public static final int selectTextMode = 16908333; // 0x102002d @@ -1727,6 +1728,7 @@ package android { field public static final int text2 = 16908309; // 0x1020015 field public static final int title = 16908310; // 0x1020016 field public static final int toggle = 16908311; // 0x1020017 + field public static final int undo = 16908337; // 0x1020031 field public static final int widget_frame = 16908312; // 0x1020018 } diff --git a/api/system-current.txt b/api/system-current.txt index 6968896..121f9ec 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -1787,6 +1787,7 @@ package android { field public static final int paste = 16908322; // 0x1020022 field public static final int primary = 16908300; // 0x102000c field public static final int progress = 16908301; // 0x102000d + field public static final int redo = 16908338; // 0x1020032 field public static final int secondaryProgress = 16908303; // 0x102000f field public static final int selectAll = 16908319; // 0x102001f field public static final int selectTextMode = 16908333; // 0x102002d @@ -1803,6 +1804,7 @@ package android { field public static final int text2 = 16908309; // 0x1020015 field public static final int title = 16908310; // 0x1020016 field public static final int toggle = 16908311; // 0x1020017 + field public static final int undo = 16908337; // 0x1020031 field public static final int widget_frame = 16908312; // 0x1020018 } |