Update OOUI to v0.30.3
[lhc/web/wiklou.git] / resources / lib / ooui / oojs-ui-toolbars.js
index 574b355..15a3254 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOUI v0.30.2
+ * OOUI v0.30.3
  * https://www.mediawiki.org/wiki/OOUI
  *
  * Copyright 2011–2019 OOUI Team and other contributors.
  * Released under the MIT license
  * http://oojs.mit-license.org
  *
- * Date: 2019-01-23T01:14:20Z
+ * Date: 2019-02-21T10:57:07Z
  */
 ( function ( OO ) {
 
@@ -2032,7 +2032,7 @@ OO.ui.PopupToolGroup.prototype.onMouseKeyDown = function ( e ) {
                $focused = $( document.activeElement );
                $firstFocusable = OO.ui.findFocusable( this.$group );
                if ( $focused[ 0 ] === $firstFocusable[ 0 ] && e.shiftKey ) {
-                       this.$handle.focus();
+                       this.$handle.trigger( 'focus' );
                        return false;
                }
                $lastFocusable = OO.ui.findFocusable( this.$group, true );
@@ -2040,7 +2040,7 @@ OO.ui.PopupToolGroup.prototype.onMouseKeyDown = function ( e ) {
                        // Focus this group's handle and let the browser's tab handling happen (no 'return false').
                        // This way we don't have to fiddle with other ToolGroups' business, or worry what to do
                        // if the next group is not a PopupToolGroup or doesn't exist at all.
-                       this.$handle.focus();
+                       this.$handle.trigger( 'focus' );
                        // Close the popup so that we don't move back inside it (if this is the last group).
                        this.setActive( false );
                }