forked from mbk-lab/rui_orig
upstream: Bug fixing
This commit is contained in:
parent
08dc88ca86
commit
7b3caa64bd
|
@ -288,7 +288,7 @@ func OpenBrowser(url string) bool {
|
||||||
case "linux":
|
case "linux":
|
||||||
for _, provider := range []string{"xdg-open", "x-www-browser", "www-browser"} {
|
for _, provider := range []string{"xdg-open", "x-www-browser", "www-browser"} {
|
||||||
if _, err = exec.LookPath(provider); err == nil {
|
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
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -311,7 +311,11 @@ function keyEvent(element, event, tag) {
|
||||||
message += ",timeStamp=" + event.timeStamp;
|
message += ",timeStamp=" + event.timeStamp;
|
||||||
}
|
}
|
||||||
if (event.key) {
|
if (event.key) {
|
||||||
message += ",key=\"" + event.key + "\"";
|
if (event.key == '"') {
|
||||||
|
message += ",key=`" + event.key + "`";
|
||||||
|
} else {
|
||||||
|
message += ",key=\"" + event.key + "\"";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (event.code) {
|
if (event.code) {
|
||||||
message += ",code=\"" + event.code + "\"";
|
message += ",code=\"" + event.code + "\"";
|
||||||
|
|
Loading…
Reference in New Issue