Catrope has uploaded a new change for review.
https://gerrit.wikimedia.org/r/165537
Change subject: Followup b8d8a5b: fix stray check for !selection
......................................................................
Followup b8d8a5b: fix stray check for !selection
Bug: 71823
Change-Id: I5b9275b37b6f1d017e45cf57c0cbe48511b55835
---
M src/ce/ve.ce.Surface.js
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor
refs/changes/37/165537/1
diff --git a/src/ce/ve.ce.Surface.js b/src/ce/ve.ce.Surface.js
index 8e53b5a..502a405 100644
--- a/src/ce/ve.ce.Surface.js
+++ b/src/ce/ve.ce.Surface.js
@@ -608,7 +608,7 @@
* @fires focus
*/
ve.ce.Surface.prototype.onDocumentFocus = function () {
- if ( !this.getModel().getSelection() ) {
+ if ( this.getModel().getSelection().isNull() ) {
// If the document is being focused by a non-mouse/non-touch
user event,
// find the first content offset and place the cursor there.
this.getModel().selectFirstContentOffset();
--
To view, visit https://gerrit.wikimedia.org/r/165537
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5b9275b37b6f1d017e45cf57c0cbe48511b55835
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Catrope <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits