Showing questions tagged: Show all questions

Capture the shift key when pressed

I am writing a program that requires me to detect when a shift key is pressed and do something. Something like window.addEventListener('keydown', event => console.log(… (read more)

I am writing a program that requires me to detect when a shift key is pressed and do something. Something like

window.addEventListener('keydown', event => console.log(event), false); // expect to see an event logged to console when pushing the "shift" key

This works great on all browsers except Firefox. "alt" and "fn" keys are also not able to be detected on Firefox. Is there some sort of advanced security settings I can disable to let me capture these things?

Thanks in advance.

Asked by codyb29 4 days ago

Last reply by codyb29 4 days ago

Why is any sites not propery loaded

Whenever I want to visit some websites the sites get opened but not properly the content of sites are loaded with some random digits. I am using Firefox On Kali Machine, … (read more)

Whenever I want to visit some websites the sites get opened but not properly the content of sites are loaded with some random digits. I am using Firefox On Kali Machine, Other Browser like Google Chrome works properly I have attached image for better understanding so please look up.

Asked by bajgainmanoj3 8 hours ago