fix minor focus issues
This commit is contained in:
parent
8288d08648
commit
110fe21a23
@ -1,4 +1,10 @@
|
||||
import { IMAGES, SPRITE_SPECS, SpriteSpec, Sprites } from "../config";
|
||||
import {
|
||||
IMAGES,
|
||||
Miscellaneous,
|
||||
SPRITE_SPECS,
|
||||
SpriteSpec,
|
||||
Sprites,
|
||||
} from "../config";
|
||||
import { Entity, EntityNames } from ".";
|
||||
import {
|
||||
BoundingBox,
|
||||
@ -77,7 +83,14 @@ export class FunctionBox extends Entity {
|
||||
return;
|
||||
}
|
||||
modalOpen = true;
|
||||
openModal(this.code);
|
||||
openModal(
|
||||
`<div style="text-align:center"><p>${this.code}</p> <br> <button id="close">Close</button></div>`,
|
||||
);
|
||||
|
||||
document.getElementById("close")!.addEventListener("click", () => {
|
||||
closeModal();
|
||||
document.getElementById(Miscellaneous.CANVAS_ID)!.focus();
|
||||
});
|
||||
};
|
||||
|
||||
this.addComponent(new Interactable(interaction));
|
||||
|
1
src/typeshims/rainbowbrackets.d.ts
vendored
Normal file
1
src/typeshims/rainbowbrackets.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
declare module 'rainbowbrackets';
|
Loading…
Reference in New Issue
Block a user