From da4b72c2d35f38e0010f297c6b006cb188281113 Mon Sep 17 00:00:00 2001 From: jberg Date: Tue, 15 May 2018 17:48:55 -0700 Subject: [PATCH] add comments for key codes --- js/components/MilkdropWindow/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/components/MilkdropWindow/index.js b/js/components/MilkdropWindow/index.js index 4d192eb4..899086b6 100644 --- a/js/components/MilkdropWindow/index.js +++ b/js/components/MilkdropWindow/index.js @@ -108,11 +108,11 @@ class MilkdropWindow extends React.Component { } } _handleKeyboardInput(e) { - if (e.which === 32) { + if (e.which === 32) { // spacebar this._nextPreset(USER_PRESET_TRANSITION_SECONDS); - } else if (e.which === 8) { + } else if (e.which === 8) { // backspace this._prevPreset(0); - } else if (e.which === 72) { + } else if (e.which === 72) { // H this._nextPreset(0); } }