From 016240b6f8822b7c59fe8cc9dd912a8878536abb Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 17 Apr 2015 17:14:41 +0100 Subject: [PATCH] don't steal focus --- static/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/utils.js b/static/js/utils.js index 7a82a9361..38e58a9b2 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -2020,7 +2020,7 @@ pandora.logEvent = function(data, event, element) { }; pandora.openLicenseDialog = function() { - if (!pandora.hasDialogOrScreen()) { + if (!Ox.Focus.focusedElementIsInput() && !pandora.hasDialogOrScreen()) { pandora.ui.licenseDialog().open().bindEvent({ close: function() { setTimeout(function() {