From 7b3caa64bd337b5c15deb654fc72da91fb054027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=BE=D0=BC=D0=B0=D0=BD=20=D0=91=D0=BE=D1=80=D0=BE?= =?UTF-8?q?=D0=B4=D0=B8=D0=BD?= Date: Fri, 12 Apr 2024 15:58:11 +0300 Subject: [PATCH] upstream: Bug fixing --- appServer.go | 2 +- app_scripts.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/appServer.go b/appServer.go index 92d6b1b..0d20e0e 100644 --- a/appServer.go +++ b/appServer.go @@ -288,7 +288,7 @@ func OpenBrowser(url string) bool { case "linux": for _, provider := range []string{"xdg-open", "x-www-browser", "www-browser"} { if _, err = exec.LookPath(provider); err == nil { - if exec.Command(provider, url).Start(); err == nil { + if err = exec.Command(provider, url).Start(); err == nil { return true } } diff --git a/app_scripts.js b/app_scripts.js index 318d96b..d7872cb 100644 --- a/app_scripts.js +++ b/app_scripts.js @@ -311,7 +311,11 @@ function keyEvent(element, event, tag) { message += ",timeStamp=" + event.timeStamp; } if (event.key) { - message += ",key=\"" + event.key + "\""; + if (event.key == '"') { + message += ",key=`" + event.key + "`"; + } else { + message += ",key=\"" + event.key + "\""; + } } if (event.code) { message += ",code=\"" + event.code + "\"";