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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user