Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

keyup keydown not working on a mac

Engaged ,
Dec 23, 2024 Dec 23, 2024

Hi all,

I have a Cep panel which works brilliantly on Windows but I can't make these lines work on MacOS.

document.addEventListener('keydown', keyDown);
document.addEventListener('keyup', keyUp);

I tried with document, window and various elements, I tried jquery and .onmousedown.
They just don't work on Mac. 

Do you have any idea why?
TOPICS
Scripting
116
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation