aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorGreg Denehy <greg@inclose.com.au>2017-04-30 16:35:35 +0930
committerGreg Denehy <greg@inclose.com.au>2017-04-30 16:35:35 +0930
commite48e1e19b97d99de107966dd3f8c431a89457972 (patch)
tree3d95b9dca8afeed37cc5fb16a3213d0541c7d355 /js
parent8bf9986fa21c89b9b38145b43e6fe572c3acebd5 (diff)
downloadperl-software-in-gnu-guix-e48e1e19b97d99de107966dd3f8c431a89457972.tar
perl-software-in-gnu-guix-e48e1e19b97d99de107966dd3f8c431a89457972.tar.gz
Changed custom key binding config properties to use 'keyCode' instead of 'code'
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 9d4444f..328edb0 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1098,8 +1098,8 @@
* Add a custom key binding with optional description to be added to the help screen
*/
function addKeyBinding(binding, callback) {
- if (typeof binding === 'object' && binding.code) {
- registeredKeyBindings[binding.code] = {
+ if (typeof binding === 'object' && binding.keyCode) {
+ registeredKeyBindings[binding.keyCode] = {
callback: callback,
key: binding.key,
description: binding.description