1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2025-01-24 22:49:15 +01:00

Fix shortcut key for mac

This commit is contained in:
AkiraFukushima 2024-01-13 11:26:16 +09:00
parent e7ca7c3bea
commit 3f03424608
No known key found for this signature in database
GPG Key ID: B6E51BAC4DE1A957
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ export default function Compose(props: Props) {
const handleKeyPress = useCallback(
(event: KeyboardEvent) => {
if (event.ctrlKey === true && event.key === 'Enter') {
if ((event.ctrlKey === true && event.key === 'Enter') || (event.metaKey === true && event.key === 'Enter')) {
post()
}
},

View File

@ -32,7 +32,7 @@ export default function Timeline(props: Props) {
const scrollerRef = useRef<HTMLElement | null>(null)
const streaming = useRef<WebSocketInterface | null>(null)
const composeRef = useRef<HTMLDivElement | null>(null)
useHotkeys('ctrl+r', () => reload())
useHotkeys('mod+r', () => reload())
useEffect(() => {
const observer = new ResizeObserver(entries => {