Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Represent space key as "space" instead of " "
Browse files Browse the repository at this point in the history
Issue #1283
  • Loading branch information
pablosichert committed Nov 16, 2017
1 parent 0d6434f commit 7a9485d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Shortcuts/ShortcutProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ export default class ShortcutProvider extends Component {

this.keySequence = [...keySequence, key];

const serializedSequence = this.keySequence.join('+').toUpperCase();
const serializedSequence = (this.keySequence
.join('+')
.replace(/\s/, 'space')
.toUpperCase()
);

if (!(serializedSequence in hotkeys)) {
return;
Expand Down

0 comments on commit 7a9485d

Please sign in to comment.