Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

147
Views
reveal.js keyboard mapping / java script key event codes ; don't add up

I don't understand how I get the "correct" key codes for configuring the keyboard map of reveal.js. Some integers work, like 27 for escape, others don't like I need Period (.) and F5 for a logitech presenter (and I don't want to mess with Xorg key mapping). This has no effect:

        Reveal.configure({
            keyboard: {
                46: () => { alert("period") },  // no effect
                'Period': () => { alert("period") }, // no effect
                27: () => { console.log('esc') },  // works
            }
        });

How would I find the correct numbers (?) to remap period and F5?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This way of getting key codes is not correct. This page works correctly: http://javascriptkeycode.com/

Here period is given as 190, and F5 is given as 116.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!