fix on linux numpadenter

This commit is contained in:
rustdesk 2021-07-27 20:12:53 +08:00
parent 191fdc6691
commit a3f5ffc15a
2 changed files with 4 additions and 2 deletions

View File

@ -673,7 +673,8 @@ function formatId(id) {
event keydown (evt) {
if (!evt.shortcutKey) {
if (evt.keyCode == Event.VK_ENTER ||
(view.mediaVar("platform") == "OSX" && evt.keyCode == 0x4C)) {
(is_osx && evt.keyCode == 0x4C) ||
(is_linux && evt.keyCode == 65421)) {
var el = $(button#connect);
view.focus = el;
el.sendEvent("click");

View File

@ -230,7 +230,8 @@ event click $(button#submit) {
event keydown (evt) {
if (!evt.shortcutKey) {
if (evt.keyCode == Event.VK_ENTER ||
(view.mediaVar("platform") == "OSX" && evt.keyCode == 0x4C)) {
(is_osx && evt.keyCode == 0x4C) ||
(is_linux && evt.keyCode == 65421)) {
submit();
}
if (evt.keyCode == Event.VK_ESCAPE) {