Skip to content

Commit

Permalink
[sailfishos][gecko] Hide accessible carets also with touch select all…
Browse files Browse the repository at this point in the history
… event. Fixes JB#51643
  • Loading branch information
kende authored and rainemak committed Dec 11, 2020
1 parent 3a51757 commit 90750a1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
@@ -0,0 +1,27 @@
From 2aaf8ccc12ac603eee8f3573f3dd93080afbc1dd Mon Sep 17 00:00:00 2001
From: Marko Kenttala <marko.kenttala@jolla.com>
Date: Thu, 10 Dec 2020 17:04:02 +0200
Subject: [PATCH] [sailfishos][gecko] Hide accessible carets also with touch
select all event

---
layout/base/AccessibleCaretManager.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/layout/base/AccessibleCaretManager.cpp b/layout/base/AccessibleCaretManager.cpp
index aea1508b7f13..3e92fd7c269c 100644
--- a/layout/base/AccessibleCaretManager.cpp
+++ b/layout/base/AccessibleCaretManager.cpp
@@ -195,7 +195,8 @@ nsresult AccessibleCaretManager::OnSelectionChanged(nsIDOMDocument* aDoc,
// When we want to hide the carets for mouse input, hide them for select
// all action fired by keyboard as well.
if (sHideCaretsForMouseInput &&
- mLastInputSource == nsIDOMMouseEvent::MOZ_SOURCE_KEYBOARD &&
+ (mLastInputSource == nsIDOMMouseEvent::MOZ_SOURCE_KEYBOARD ||
+ mLastInputSource == nsIDOMMouseEvent::MOZ_SOURCE_TOUCH) &&
(aReason & nsISelectionListener::SELECTALL_REASON)) {
HideCarets();
return NS_OK;
--
2.17.1

1 change: 1 addition & 0 deletions rpm/xulrunner-qt5.spec
Expand Up @@ -99,6 +99,7 @@ Patch52: 0052-sailfishos-gecko-Change-behaviour-of-urlclassifier.s.patch
Patch53: 0053-sailfishos-gecko-Provide-checkbox-radio-renderer-for.patch
Patch54: 0054-sailfishos-gecko-Start-using-user-agent-builder.-JB-.patch
Patch55: 0055-sailfishos-gecko-Enable-event.srcElement-on-all-chan.patch
Patch56: 0056-sailfishos-gecko-Hide-accessible-carets-also-with-to.patch

BuildRequires: rust
BuildRequires: rust-std-static
Expand Down

0 comments on commit 90750a1

Please sign in to comment.