Update Tag.js
This commit is contained in:
@ -19,13 +19,13 @@ const onClick = function() {
|
|||||||
type: [...selectAll('button.tags__tag.is-active')]
|
type: [...selectAll('button.tags__tag.is-active')]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
onkeydown = e => (
|
onkeydown = e => {
|
||||||
if(e.shiftKey){
|
if(e.shiftKey){
|
||||||
isShiftSelected = true;
|
isShiftSelected = true;
|
||||||
});
|
}};
|
||||||
|
|
||||||
onkeyup = e => (
|
onkeyup = e => {
|
||||||
if(e.shiftKey){
|
if(e.shiftKey){
|
||||||
isShiftSelected = false;
|
isShiftSelected = false;
|
||||||
});
|
}};
|
||||||
tagButtons.forEach(button => on(button, 'click', onClick))
|
tagButtons.forEach(button => on(button, 'click', onClick))
|
||||||
|
|||||||
Reference in New Issue
Block a user