Esanders has uploaded a new change for review. https://gerrit.wikimedia.org/r/116114
Change subject: Blur the surface when a dialog is opened ...................................................................... Blur the surface when a dialog is opened Otherwise the user can keep typing into the doucment ce. Bug: 62027 Change-Id: Ie6c7609a4d8b981b5336fcf95a3a877142e93509 --- M modules/ve/ui/actions/ve.ui.DialogAction.js 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor refs/changes/14/116114/1 diff --git a/modules/ve/ui/actions/ve.ui.DialogAction.js b/modules/ve/ui/actions/ve.ui.DialogAction.js index cb6049a..42886da 100644 --- a/modules/ve/ui/actions/ve.ui.DialogAction.js +++ b/modules/ve/ui/actions/ve.ui.DialogAction.js @@ -44,6 +44,7 @@ * @param {Object} [config] Configuration options for dialog setup */ ve.ui.DialogAction.prototype.open = function ( name, config ) { + this.surface.getView().getDocument().getDocumentNode().$element[0].blur(); this.surface.getDialogs().getWindow( name ).open( config ); }; -- To view, visit https://gerrit.wikimedia.org/r/116114 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie6c7609a4d8b981b5336fcf95a3a877142e93509 Gerrit-PatchSet: 1 Gerrit-Project: VisualEditor/VisualEditor Gerrit-Branch: master Gerrit-Owner: Esanders <esand...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits