0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Fixed CMD+TAB not firing keyup in post multi selection

refs https://github.com/TryGhost/Team/issues/2677

When doing CMD+TAB, then CMD+TAB+shift, the CMD key got released but both the keyup and blur events weren't called (also focus not).

To fix this, on the next click we'll check the meta, shift and ctrl keys so we can restore the situation.
This commit is contained in:
Simon Backx 2023-04-14 09:44:06 +02:00
parent 1403849efe
commit f8d0b56c2c

View file

@ -44,6 +44,11 @@ export default class ListComponent extends Component {
if (!event.metaKey && !event.ctrlKey) {
this.selectionList.clearSelection();
}
// Update the status (in case we didn't receive an keyup event)
this.shiftPressed = !!event.shiftKey;
this.metaPressed = !!event.metaKey;
this.ctrlPressed = !!event.ctrlKey;
}
@action