give focus explicitly to loleafletframe after loading
This is mainly problem in firefox where sometime, key press events are handled by the browser, but we do not want that.
This commit is contained in:
parent
7dd4a8c58d
commit
04a3bacb4d
@ -254,7 +254,7 @@ var documentsMain = {
|
|||||||
'<input name="access_token" value="' + access_token + '" type="hidden"/></form>';
|
'<input name="access_token" value="' + access_token + '" type="hidden"/></form>';
|
||||||
|
|
||||||
// iframe that contains the Collabora Online
|
// iframe that contains the Collabora Online
|
||||||
var frame = '<iframe id="loleafletframe" name= "loleafletframe" allowfullscreen style="width:100%;height:100%;position:absolute;"/>';
|
var frame = '<iframe id="loleafletframe" name= "loleafletframe" allowfullscreen style="width:100%;height:100%;position:absolute;" onload="this.contentWindow.focus()"/>';
|
||||||
|
|
||||||
$('#mainContainer').append(form);
|
$('#mainContainer').append(form);
|
||||||
$('#mainContainer').append(frame);
|
$('#mainContainer').append(frame);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user