diff --git a/lib/containers/hyper.tsx b/lib/containers/hyper.tsx index c5da9098..86bc9889 100644 --- a/lib/containers/hyper.tsx +++ b/lib/containers/hyper.tsx @@ -85,7 +85,13 @@ class Hyper extends React.PureComponent { onTermsRef = (terms: Terms) => { this.terms = terms; - window.focusActiveTerm = this.handleFocusActive; + window.focusActiveTerm = (uid?: string) => { + if (uid) { + this.handleFocusActive(uid); + } else { + this.terms.getActiveTerm().focus(); + } + }; }; componentWillUnmount() {