Focus if context is falsy or focus field isn't false
This commit is contained in:
parent
345b9c6f9d
commit
cd1f367798
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user