Skip to content

Commit

Permalink
debug cleanup when there are unrecognized sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
ikks committed Oct 10, 2024
1 parent cf7d38e commit ece55c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/KeystrokesOverlay.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { batch, createSignal } from "solid-js";
import { createSignal } from "solid-js";

const [isFading, setisFading] = createSignal(false);

Expand Down Expand Up @@ -93,7 +93,7 @@ function formatKeyCode(data, logger) {
if (rep in unicode_seq) {
return unicode_seq[rep];
} else if (rep.startsWith('"\\')) {
logger.info("- ", rep, data);
logger.debug("- ", rep, data);
return "";
}
return rep.slice(1, -1);
Expand Down
2 changes: 0 additions & 2 deletions src/components/Player.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ export default (props) => {

if (e.key == " ") {
core.togglePlay();
setisKeyStrokeFading(false);
} else if (e.key == ".") {
core.step();
updateTime();
Expand Down Expand Up @@ -534,7 +533,6 @@ export default (props) => {
<KeystrokesOverlay
fontFamily={props.terminalFontFamily}
keystroke={keyStroke()}
isKeystrokeFading={isKeystrokeFading()}
hideKeyStroke={hideKeyStroke}
logger={props.logger}
/>
Expand Down

0 comments on commit ece55c3

Please sign in to comment.