Ensure the debugger container has focus when loaded. Fixes #3295 - this time on Firefox too!
parent
a4ed9d6976
commit
6492dacbb2
|
@ -1850,8 +1850,13 @@ define([
|
|||
self.docker.off(wcDocker.EVENT.LOADED);
|
||||
// Register the callback when user set/clear the breakpoint on gutter area.
|
||||
self.editor.on('gutterClick', self.onBreakPoint.bind(self), self);
|
||||
// Set focus to the debugger container
|
||||
self.$container.focus();
|
||||
/* Set focus to the debugger container
|
||||
* Focus does not work in firefox without tabindex attr
|
||||
* so, setting focus to parent of $container which is #container
|
||||
*/
|
||||
if(self.docker.$container){
|
||||
self.docker.$container.parent().focus();
|
||||
}
|
||||
};
|
||||
|
||||
self.docker.startLoading(gettext('Loading...'));
|
||||
|
|
Loading…
Reference in New Issue