fix: Add indicator of starred status when viewing a document (#1785)

* fix: Add indicator of starred status when viewing a document
closes #461

* fix: Account for shared document
This commit is contained in:
Tom Moor
2021-01-10 23:13:58 -08:00
committed by GitHub
parent 4b85603f30
commit 7504d43452
5 changed files with 125 additions and 62 deletions

View File

@@ -5,6 +5,8 @@ export const metaDisplay = isMac ? "⌘" : "Ctrl";
export const meta = isMac ? "cmd" : "ctrl";
export function isMetaKey(event: KeyboardEvent | MouseEvent) {
export function isMetaKey(
event: KeyboardEvent | MouseEvent | SyntheticKeyboardEvent<>
) {
return isMac ? event.metaKey : event.ctrlKey;
}