From 5b1c0ee979ed32156b9a9906f42fe5960d7c15d9 Mon Sep 17 00:00:00 2001 From: zombieFox Date: Mon, 2 Dec 2019 00:14:47 +0000 Subject: [PATCH] [design] improve keyabord esc order --- src/js/keyboard.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/keyboard.js b/src/js/keyboard.js index 21dbf8bf..228e5a75 100644 --- a/src/js/keyboard.js +++ b/src/js/keyboard.js @@ -18,6 +18,8 @@ var keyboard = (function() { link.add.item.close(); } else if (state.get().group.add) { link.add.group.close(); + } else if (state.get().link.edit && state.get().modal) { + link.add.item.close(); } else if (state.get().link.edit) { link.edit.close(); data.save();