mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-24 12:29:04 +08:00
fix on linux numpadenter
This commit is contained in:
parent
191fdc6691
commit
a3f5ffc15a
@ -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");
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user