jenkins-bot has submitted this change and it was merged.

Change subject: Prevent the default action for uncollapsed linear delete
......................................................................


Prevent the default action for uncollapsed linear delete

For an uncollapsed selection, handleLinearDelete was deleting the content but
wrongly reporting that it had not, leading to the native behaviour deleting
extra content adjacent to the selection. Fix handleLinearDelete's reporting
so that preventDefault gets called on the delete/backspace keydown event.

Bug: T89933
Change-Id: I2539a0cb2e2216dca479bad405d2ded9a48ce1f3
---
M src/ce/ve.ce.Surface.js
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Catrope: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/src/ce/ve.ce.Surface.js b/src/ce/ve.ce.Surface.js
index 5315893..71f3525 100644
--- a/src/ce/ve.ce.Surface.js
+++ b/src/ce/ve.ce.Surface.js
@@ -3295,7 +3295,7 @@
        // TODO: is any of this necessary?
        this.focus();
        this.surfaceObserver.clear();
-       return false;
+       return true;
 };
 
 /**

-- 
To view, visit https://gerrit.wikimedia.org/r/191661
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I2539a0cb2e2216dca479bad405d2ded9a48ce1f3
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: wmf/1.25wmf18
Gerrit-Owner: Jforrester <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: Divec <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to