Skip to content

Commit

Permalink
Merge branch 'develop' into desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengyangliu committed Jul 3, 2024
2 parents 9a83be6 + 61b910a commit 65e8716
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/containers/hardware-console.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,18 +156,22 @@ class HardwareConsole extends React.Component {

// Ctrl + A
if (keyCode === 65 && ctrlKey) {
e.preventDefault();
this.writeToPeripheral(String.fromCharCode(1));
}
// Ctrl + B
if (keyCode === 66 && ctrlKey) {
e.preventDefault();
this.writeToPeripheral(String.fromCharCode(2));
}
// Ctrl + C
if (keyCode === 67 && ctrlKey) {
e.preventDefault();
this.writeToPeripheral(String.fromCharCode(3));
}
// Ctrl + D
if (keyCode === 68 && ctrlKey) {
e.preventDefault();
this.writeToPeripheral(String.fromCharCode(4));
}
}
Expand Down

0 comments on commit 65e8716

Please sign in to comment.