summaryrefslogtreecommitdiff
path: root/scripts/gui-common/widgets.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gui-common/widgets.js')
-rw-r--r--scripts/gui-common/widgets.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/gui-common/widgets.js b/scripts/gui-common/widgets.js
index 86bc5b1..c99c3b1 100644
--- a/scripts/gui-common/widgets.js
+++ b/scripts/gui-common/widgets.js
@@ -109,7 +109,7 @@ class Widget extends EventTarget{
#emitMouseEvent(event)
{
if (WIDGETS_DEBUG) {
- console.log(event);
+ addLogEntry(event);
}
if (this.#inactive)
@@ -122,7 +122,7 @@ class Widget extends EventTarget{
#emitTouchEvent(event)
{
if (WIDGETS_DEBUG) {
- console.log(event);
+ addLogEntry(event);
}
if (event.type == "touchstart")
@@ -141,7 +141,7 @@ class Widget extends EventTarget{
/** @param {KeyboardEvent} event */
#emitKeyboardEvent(event) {
if (WIDGETS_DEBUG) {
- console.log(event);
+ addLogEntry(event);
}
if (this.#inactive)
@@ -156,7 +156,7 @@ class Widget extends EventTarget{
/** @param {FocusEvent} event */
#emitFocusEvent(event) {
if (WIDGETS_DEBUG) {
- console.log(event);
+ addLogEntry(event);
}
if (this.#inactive)
@@ -172,7 +172,7 @@ class Widget extends EventTarget{
#emitContextEvent(event)
{
if (WIDGETS_DEBUG) {
- console.log(event);
+ addLogEntry(event);
}
if (this.#inactive)