HTML tree: Fix Shift-Enter for opening PDFs in separate windows
This also required React 17, which removed event pooling [1], which was breaking this even after the code change. https://forums.zotero.org/discussion/comment/396112/#Comment_396112 [1] https://reactjs.org/blog/2020/08/10/react-v17-rc.html#no-event-pooling
This commit is contained in:
parent
6e0bc58052
commit
d3691473bc
1 changed files with 4 additions and 4 deletions
|
@ -574,6 +574,10 @@ class VirtualizedTable extends React.Component {
|
|||
return;
|
||||
}
|
||||
break;
|
||||
|
||||
case "Enter":
|
||||
this._activateNode(e);
|
||||
return;
|
||||
}
|
||||
|
||||
if (e.key == 'ContextMenu' || (e.key == 'F10' && e.shiftKey)) {
|
||||
|
@ -613,10 +617,6 @@ class VirtualizedTable extends React.Component {
|
|||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case "Enter":
|
||||
this._activateNode(e);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue