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?