ra4king / CircuitSim

Basic Circuit Simulator
https://ra4king.github.io/CircuitSim
BSD 3-Clause "New" or "Revised" License
76 stars 28 forks source link

Fixes a bug where "delete" key on Mac keyboards failed to delete components. #16

Closed hvpeteet closed 7 years ago

hvpeteet commented 7 years ago

Source of issue: Mac keyboards map the "delete" key to backspace rather than delete.

ra4king commented 7 years ago

No need for the additional removeElements call, just move the "case BACK_SPACE:" to the line right after the "case DELETE:" line.