Focus if context is falsy or focus field isn't false

This commit is contained in:
toasted-nutbread 2019-08-16 17:36:55 -04:00
parent 345b9c6f9d
commit cd1f367798

View File

@ -269,7 +269,7 @@ class Display {
async termsShow(definitions, options, context) { async termsShow(definitions, options, context) {
try { try {
if (context && context.focus) { if (!context || context.focus !== false) {
window.focus(); window.focus();
} }
@ -323,7 +323,7 @@ class Display {
async kanjiShow(definitions, options, context) { async kanjiShow(definitions, options, context) {
try { try {
if (context && context.focus) { if (!context || context.focus !== false) {
window.focus(); window.focus();
} }