Update Tag.js

This commit is contained in:
Rohit Tanwar
2018-04-13 20:21:32 +05:30
committed by GitHub
parent 08fd9b98a1
commit b065ee65d8

View File

@ -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))