Closed jshreyans closed 5 years ago
@jshreyans551
Resolved the first problem
@sarthak-sehgal I've added the necessary logic as per your second point and there was the text-overlap issue in Firefox, so that's been resolved.
@jshreyans551 This isn't working for me, in any browser.
@kunal-mohta Pls check now. It should work. I'd forgotten to update the gh-pages.
@jshreyans551 I just found a bug.
Use Shift + D
for capital D
and for capital V & M
turn on the Caps Lock
. It won't work. :wink:
@kunal-mohta
I should have guessed that would happen. My logic basically makes a sliced array from the array containing all keydown
events. So once you press Caps Lock, it also gets recorded in the sliced array after D, so the condition becomes false
and the loop breaks.
I'll correct it. Thanks!
Should work now
Completed B4
https://github.com/jshreyans551/frontend-101/blob/2e18b8bc4c374e3a098aff6ba1704ece0f31718b/B/4.html#L60 Don't know if the logic used here for comparision is the best one but it works well.