diff options
| author | 2022-09-06 19:37:35 +0900 | |
|---|---|---|
| committer | 2022-09-08 13:41:42 +0900 | |
| commit | 66260c6045858d2fb8b413941fea5afc33c55b30 (patch) | |
| tree | c78969b18ed232dc64c4d67fc0dedb5c137f6f39 /libs/androidfw/StringPool.cpp | |
| parent | 266bef461710c921ee79de4ba810d7ae3ae4cd47 (diff) | |
Implement Ctrl+B/I/U shorcut
These shortcut works as follows:
- If the selected region is empty, do nothing.
- If the selected region has at least one character that is not styled,
e.g. bold, apply bold style.
- If the selected region is fully styled, e.g. bold, remove bold style
from the region.
The default TextView/EditText supports styled editing, but it is used
commonly as plain text fields, e.g. email address in the form, etc.
So, not to style the text in such places, disable styled shortcut by
default and let developers to enable it when necessary.
Bug: 240628246
Test: TextViewStyleShortcutTest
Change-Id: Id0f1cd85eb198553a852c5c2b628f5d03a2741e1
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions