mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-01-11 08:24:58 +01:00
Merge pull request #4770 from h3poteto/iss-4653/mac-key
Fix shortcut key for mac
This commit is contained in:
commit
ea60b6313d
@ -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()
|
||||
}
|
||||
},
|
||||
|
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user