mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-09 16:50:28 +03:00
fix page up/down button not working (#1863)
This commit is contained in:
parent
681287c46a
commit
96222de5bc
2 changed files with 6 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ import { useKeyDown } from '../../hooks/useKeyDown';
|
|||
import { markAsRead } from '../../../client/action/notifications';
|
||||
import { useMatrixClient } from '../../hooks/useMatrixClient';
|
||||
import { useRoomMembers } from '../../hooks/useRoomMembers';
|
||||
import { editableActiveElement } from '../../utils/dom';
|
||||
|
||||
export function Room() {
|
||||
const { eventId } = useParams();
|
||||
|
|
@ -28,7 +29,7 @@ export function Room() {
|
|||
window,
|
||||
useCallback(
|
||||
(evt) => {
|
||||
if (isKeyHotkey('escape', evt)) {
|
||||
if (isKeyHotkey('escape', evt) && !editableActiveElement()) {
|
||||
markAsRead(mx, room.roomId);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue