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 + "\"";