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

Change subject: Go backwards through find and replace results on shift enter
......................................................................


Go backwards through find and replace results on shift enter

Depends on I078874a6 in OOjs-ui.

Change-Id: Ia7069c73d7ab6fd89c8bd3ffca7345144929661d
---
M src/ui/dialogs/ve.ui.FindAndReplaceDialog.js
1 file changed, 8 insertions(+), 2 deletions(-)

Approvals:
  Catrope: Looks good to me, but someone else must approve
  Jforrester: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/src/ui/dialogs/ve.ui.FindAndReplaceDialog.js 
b/src/ui/dialogs/ve.ui.FindAndReplaceDialog.js
index c55c74f..9a4b1f8 100644
--- a/src/ui/dialogs/ve.ui.FindAndReplaceDialog.js
+++ b/src/ui/dialogs/ve.ui.FindAndReplaceDialog.js
@@ -211,9 +211,15 @@
 
 /**
  * Handle enter events on the find text input
+ *
+ * @param {jQuery.Event} e
  */
-ve.ui.FindAndReplaceDialog.prototype.onFindTextEnter = function () {
-       this.onNextButtonClick();
+ve.ui.FindAndReplaceDialog.prototype.onFindTextEnter = function ( e ) {
+       if ( e.shiftKey ) {
+               this.onPreviousButtonClick();
+       } else {
+               this.onNextButtonClick();
+       }
 };
 
 /**

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia7069c73d7ab6fd89c8bd3ffca7345144929661d
Gerrit-PatchSet: 4
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to