summaryrefslogtreecommitdiffstats
path: root/browser/src/control/Permission.js
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2023-04-07 10:58:09 +0200
committerMarco Cecchetti <mrcekets@gmail.com>2023-05-31 22:43:51 +0200
commitb9f9cef60a8fc59eaa2767deef600d7617674a88 (patch)
tree62da8a29229cd51f3d9ae4840d01a69a3ef43cba /browser/src/control/Permission.js
parenta11y: TextInput: switch from <textarea> to content editable <div> (diff)
downloadonline-b9f9cef60a8fc59eaa2767deef600d7617674a88.tar.gz
online-b9f9cef60a8fc59eaa2767deef600d7617674a88.zip
a11y: populating editable area with focused paragraph
We handle notification from core about currently focused paragraph: content, caret position, text selection start/end. Notifications are sent on any text changes, even when the text has been modified in another view. Moreover we can request such info to core at any time. That allows AT software to read focused paragraph and selected text. All that keeping editing still working. A set of new cypress tests for checking clipboard content has been developed. failing cpp unit test: - HTTPWSTest::testInactiveClient 'unexpected message' assertion was failing since an idle client can receive an a11yfocuschanged message when the same paragraph has focus in both view and the active view is editing the paragraph. failing cypress tests: desktop - calc/autofilter_spec.js - added more wait time before performing clickOnFirstCell - impress/undo_redo_spec.js - Repair Document was broken - we need to select 'Hello world' in order to overwrite it mobile - impress/spellchecking_spec.js - Apply suggestion - better use selectTextOfShape instead of Ctrl-A Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com> Change-Id: I070d390543fa66fe786c4a0661fa09f891b9883e
Diffstat (limited to 'browser/src/control/Permission.js')
-rw-r--r--browser/src/control/Permission.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/browser/src/control/Permission.js b/browser/src/control/Permission.js
index 3e35a16231..7486be229d 100644
--- a/browser/src/control/Permission.js
+++ b/browser/src/control/Permission.js
@@ -194,6 +194,10 @@ L.Map.include({
this.dragging.disable();
}
+ if ((window.mode.isMobile() || window.mode.isTablet()) && this._textInput) {
+ this._textInput.setSwitchedToEditMode();
+ }
+
this.fire('updatepermission', {perm : perm});
if (this._docLayer._docType === 'text') {