/*!
- * 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 ) {
$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 );
// 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 );
}