mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
debug
This commit is contained in:
parent
e5a9786af3
commit
0e76cd4230
1 changed files with 15 additions and 0 deletions
|
@ -2583,6 +2583,21 @@ class App extends React.Component<AppProps, AppState> {
|
||||||
this.handleWheel,
|
this.handleWheel,
|
||||||
{ passive: false },
|
{ passive: false },
|
||||||
),
|
),
|
||||||
|
addEventListener(window, "focusin", (event) => {
|
||||||
|
console.log("%c@@@@@@ focusin:", "color:lime", event.target);
|
||||||
|
const target = event.target;
|
||||||
|
if (
|
||||||
|
event.target instanceof HTMLElement &&
|
||||||
|
this.state.editingTextElement
|
||||||
|
) {
|
||||||
|
if (event.target.tagName !== "TEXTAREA") {
|
||||||
|
this.focusContainer();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
addEventListener(window, "focusout", (event) => {
|
||||||
|
console.log("%c@@@@@@ focusout:", "color:red", event.target);
|
||||||
|
}),
|
||||||
addEventListener(window, EVENT.MESSAGE, this.onWindowMessage, false),
|
addEventListener(window, EVENT.MESSAGE, this.onWindowMessage, false),
|
||||||
addEventListener(document, EVENT.POINTER_UP, this.removePointer, {
|
addEventListener(document, EVENT.POINTER_UP, this.removePointer, {
|
||||||
passive: false,
|
passive: false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue