From ed002a4b666d123564150a65f00d79015aa12852 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sun, 7 Apr 2019 19:36:28 +0200 Subject: [PATCH] keys: rename var super to meta (super is already used in js) --- CHANGELOG.md | 1 + src/client/app/widgets/inputs/keys.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd513228..e5fa5ff4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - **removed** deprecated widgets `multifader`, `multitoggle`, `multipush` and `formula` - new `JS{{}}` property syntax, allows writing formulas using javascript - errors encountered in `#{}` blocks are now printed to the client console (F12) + - keys: renamed formula context variable `super` to `meta` ## 0.44.0 diff --git a/src/client/app/widgets/inputs/keys.js b/src/client/app/widgets/inputs/keys.js index 97eee3e2..129d58d3 100644 --- a/src/client/app/widgets/inputs/keys.js +++ b/src/client/app/widgets/inputs/keys.js @@ -20,7 +20,7 @@ class Keys extends Widget { '- `ctrl`: control key state', '- `alt`: alt key state', '- `shift`: shift key state', - '- `super`: command/windows key state' + '- `meta`: command/windows key state' ]}, keyup: {type: 'string', value: '', help: 'Same as `keydown`, but evaluated when releasing the key combo'}, repeat: {type: 'boolean', value: true, help: 'Set to `false` to prevent keydown repeats when holding the key combo pressed'}, @@ -158,7 +158,7 @@ Keys.parsersContexts.keydown = Keys.parsersContexts.keyup = { ctrl: false, alt: false, shift: false, - super: false + meta: false } Keys.dynamicProps = Keys.prototype.constructor.dynamicProps.concat(