Bartosz Dziewoński has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/352629 )

Change subject: TagMultiselectWidget: Restore focus into the text field after 
removing an item
......................................................................

TagMultiselectWidget: Restore focus into the text field after removing an item

This is especially important if the tag being removed had focus and
was deleted using the keyboard, but doesn't hurt in other cases.

Change-Id: I3162d27788ebb4c2ed9c8b12407a8422a6b42600
---
M src/widgets/TagMultiselectWidget.js
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/29/352629/1

diff --git a/src/widgets/TagMultiselectWidget.js 
b/src/widgets/TagMultiselectWidget.js
index 13b5381..ebee26b 100644
--- a/src/widgets/TagMultiselectWidget.js
+++ b/src/widgets/TagMultiselectWidget.js
@@ -436,6 +436,9 @@
  */
 OO.ui.TagMultiselectWidget.prototype.onTagRemove = function ( item ) {
        this.removeTagByData( item.getData() );
+       // Restore focus into the text field. This is especially important if 
the tag being removed had
+       // focus and was deleted using the keyboard, but doesn't hurt in other 
cases.
+       this.focus();
 };
 
 /**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3162d27788ebb4c2ed9c8b12407a8422a6b42600
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <matma....@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to