projects
/
rainny.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09444f9
)
fix escape to mark as read (#1935)
author
Ajay Bura
<32841439+ajbura@users.noreply.github.com>
Sun, 8 Sep 2024 12:53:17 +0000
(22:53 +1000)
committer
GitHub
<noreply@github.com>
Sun, 8 Sep 2024 12:53:17 +0000
(22:53 +1000)
src/app/features/room/Room.tsx
patch
|
blob
|
history
diff --git
a/src/app/features/room/Room.tsx
b/src/app/features/room/Room.tsx
index a4ec716512c082403fed3ff07381e08d51977ec2..ee3e702740596649364aee2c0ce0669823c0d81d 100644
(file)
--- a/
src/app/features/room/Room.tsx
+++ b/
src/app/features/room/Room.tsx
@@
-13,7
+13,6
@@
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();
@@
-29,7
+28,7
@@
export function Room() {
window,
useCallback(
(evt) => {
- if (isKeyHotkey('escape', evt)
&& !editableActiveElement()
) {
+ if (isKeyHotkey('escape', evt)) {
markAsRead(mx, room.roomId);
}
},