fix on cm (connectin not closed somehow) and refactor isEnterKey

This commit is contained in:
open-trade
2022-02-09 16:06:44 +08:00
parent d313fa92e1
commit 4945605009
9 changed files with 49 additions and 27 deletions

View File

@@ -510,8 +510,7 @@ class FolderView : Reactor.Component {
}
event keydown $(.select-dir) (evt, me) {
if (evt.keyCode == Event.VK_ENTER ||
(view.mediaVar("platform") == "OSX" && evt.keyCode == 0x4C)) {
if (isEnterKey(evt)) {
this.goto(me.value, true);
}
}