mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-03 13:11:29 +03:00
fix on cm (connectin not closed somehow) and refactor isEnterKey
This commit is contained in:
@@ -174,9 +174,7 @@ class MsgboxComponent: Reactor.Component {
|
||||
|
||||
event keydown (evt) {
|
||||
if (!evt.shortcutKey) {
|
||||
if (evt.keyCode == Event.VK_ENTER ||
|
||||
(is_osx && evt.keyCode == 0x4C) ||
|
||||
(is_linux && evt.keyCode == 65421)) {
|
||||
if (isEnterKey(evt)) {
|
||||
this.submit();
|
||||
}
|
||||
if (evt.keyCode == Event.VK_ESCAPE) {
|
||||
|
||||
Reference in New Issue
Block a user