init: the first public commit for AFFiNE

This commit is contained in:
DarkSky
2022-07-22 15:49:21 +08:00
commit e3e3741393
1451 changed files with 108124 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import { KeyboardEvent } from 'react';
class KeyboardHelper {
public eventHelper: EventHelper;
constructor() {
this.eventHelper = new EventHelper();
}
}
class EventHelper {
isSelectAll(event: KeyboardEvent) {
if ((event.ctrlKey || event.metaKey) && event.code === 'KeyA') {
return true;
}
return false;
}
}
export const keyboardHelper = new KeyboardHelper();