mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-12-18 07:12:52 +03:00
Fix hotkeys firing for multiple elements
This is due to react-hotkeys-hook v4.5.1 upgrade
This commit is contained in:
parent
894bfcc891
commit
b1d7592673
5 changed files with 17 additions and 17 deletions
|
@ -72,7 +72,7 @@ function Modal({ children, onClose, onClick, class: className, minimized }) {
|
|||
<div
|
||||
ref={(node) => {
|
||||
modalRef.current = node;
|
||||
escRef.current = node?.querySelector?.('[tabindex="-1"]') || node;
|
||||
escRef(node?.querySelector?.('[tabindex="-1"]') || node);
|
||||
}}
|
||||
className={className}
|
||||
onClick={(e) => {
|
||||
|
|
|
@ -1519,11 +1519,11 @@ function Status({
|
|||
node?.closest?.(
|
||||
'.timeline-item, .timeline-item-alt, .status-link, .status-focus',
|
||||
) || node;
|
||||
rRef.current = nodeRef;
|
||||
fRef.current = nodeRef;
|
||||
dRef.current = nodeRef;
|
||||
bRef.current = nodeRef;
|
||||
xRef.current = nodeRef;
|
||||
rRef(nodeRef);
|
||||
fRef(nodeRef);
|
||||
dRef(nodeRef);
|
||||
bRef(nodeRef);
|
||||
xRef(nodeRef);
|
||||
}}
|
||||
tabindex="-1"
|
||||
class={`status ${
|
||||
|
|
|
@ -390,10 +390,10 @@ function Timeline({
|
|||
}`}
|
||||
ref={(node) => {
|
||||
scrollableRef.current = node;
|
||||
jRef.current = node;
|
||||
kRef.current = node;
|
||||
oRef.current = node;
|
||||
dotRef.current = node;
|
||||
jRef(node);
|
||||
kRef(node);
|
||||
oRef(node);
|
||||
dotRef(node);
|
||||
}}
|
||||
tabIndex="-1"
|
||||
onClick={(e) => {
|
||||
|
|
|
@ -842,10 +842,10 @@ function Catchup() {
|
|||
<div
|
||||
ref={(node) => {
|
||||
scrollableRef.current = node;
|
||||
jRef.current = node;
|
||||
kRef.current = node;
|
||||
hlRef.current = node;
|
||||
escRef.current = node;
|
||||
jRef(node);
|
||||
kRef(node);
|
||||
hlRef(node);
|
||||
escRef(node);
|
||||
}}
|
||||
id="catchup-page"
|
||||
class="deck-container"
|
||||
|
|
|
@ -477,9 +477,9 @@ function Notifications({ columnMode }) {
|
|||
class="deck-container"
|
||||
ref={(node) => {
|
||||
scrollableRef.current = node;
|
||||
jRef.current = node;
|
||||
kRef.current = node;
|
||||
oRef.current = node;
|
||||
jRef(node);
|
||||
kRef(node);
|
||||
oRef(node);
|
||||
}}
|
||||
tabIndex="-1"
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue