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:
Dan Stillman 2021-12-23 01:10:15 -05:00
parent 6e0bc58052
commit d3691473bc

View file

@ -574,6 +574,10 @@ class VirtualizedTable extends React.Component {
return; return;
} }
break; break;
case "Enter":
this._activateNode(e);
return;
} }
if (e.key == 'ContextMenu' || (e.key == 'F10' && e.shiftKey)) { if (e.key == 'ContextMenu' || (e.key == 'F10' && e.shiftKey)) {
@ -613,10 +617,6 @@ class VirtualizedTable extends React.Component {
} }
} }
break; break;
case "Enter":
this._activateNode(e);
break;
} }
} }