fix shortcut

This commit is contained in:
Gabe Yuan
2023-09-07 23:51:08 +08:00
parent 3b9b404482
commit f9a3ec012f

View File

@@ -7,6 +7,7 @@ import { isSameSet } from "./utils";
* @returns
*/
export const shortcutListener = (fn, target = document) => {
// todo: let done = false;
const allkeys = new Set();
const curkeys = new Set();