mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
Revert "Address error caused by changing focus from context menu to window."
Just a proof-of-concept that this would work on Opera. I'm figuring out
what was this for initially...
This reverts commit 30dadb6c8c
.
Bug: 47794
Change-Id: Ie4f1334e0beb7ba7d4f4aa3b42464fa219c4778c
This commit is contained in:
parent
4e9f6cc07c
commit
3279029ded
|
@ -54,9 +54,9 @@ ve.ui.Context = function VeUiContext( surface, config ) {
|
|||
'open': 'onInspectorOpen',
|
||||
'close': 'onInspectorClose'
|
||||
} );
|
||||
|
||||
this.$$( this.getElementWindow() ).on( {
|
||||
'resize': ve.bind( this.update, this ),
|
||||
'focus': ve.bind( this.onWindowFocus, this )
|
||||
'resize': ve.bind( this.update, this )
|
||||
} );
|
||||
this.$.add( this.$menu )
|
||||
.on( 'mousedown', false );
|
||||
|
@ -125,15 +125,6 @@ ve.ui.Context.prototype.onRelocationEnd = function () {
|
|||
this.update();
|
||||
};
|
||||
|
||||
/**
|
||||
* Handle window focus events on the view.
|
||||
*
|
||||
* @method
|
||||
*/
|
||||
ve.ui.Context.prototype.onWindowFocus = function () {
|
||||
this.hide();
|
||||
};
|
||||
|
||||
/**
|
||||
* Handle an inspector being setup.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue