From 7b26ebb5fda723c43d7b6102c5a341f43ae32d4c Mon Sep 17 00:00:00 2001 From: npalomba Date: Sun, 31 Mar 2019 12:24:11 +0200 Subject: [PATCH] Fixed character hotkey for the eraser tool. Signed-off-by: npalomba --- js/_hotkeyListener.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/_hotkeyListener.js b/js/_hotkeyListener.js index e6cea11..5ef277f 100644 --- a/js/_hotkeyListener.js +++ b/js/_hotkeyListener.js @@ -34,8 +34,9 @@ function KeyPress(e) { changeTool('zoom'); break; // eraser -6, r - case 54: case 72: - changeTool('eraser'); + case 54: case 82: + console.log("Pressed r"); + changeTool('eraser'); break; //Z case 90: