|
@@ -1,6 +1,10 @@
|
|
|
// Copyright (c) Jupyter Development Team.
|
|
|
// Distributed under the terms of the Modified BSD License.
|
|
|
|
|
|
+import {
|
|
|
+ Message
|
|
|
+} from 'phosphor/lib/core/messaging';
|
|
|
+
|
|
|
import {
|
|
|
h, VNode
|
|
|
} from 'phosphor/lib/ui/vdom';
|
|
@@ -176,6 +180,14 @@ class LandingWidget extends VDomWidget<LandingModel> {
|
|
|
this._app = app;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Handle `'activate-request'` messages.
|
|
|
+ */
|
|
|
+ protected onActivateRequest(msg: Message): void {
|
|
|
+ this.node.tabIndex = -1;
|
|
|
+ this.node.focus();
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Render the landing plugin to virtual DOM nodes.
|
|
|
*/
|