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:
parent
1403849efe
commit
f8d0b56c2c
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue