Skip to content
Snippets Groups Projects
Commit 13317413 authored by Silas Dohm's avatar Silas Dohm
Browse files

added backspace functionality

parent 237f7847
No related branches found
No related tags found
No related merge requests found
......@@ -139,6 +139,10 @@ function logKey(e) {
case mode.insert:
if (e.key == "Escape")
activeMode = mode.visual;
else if(e.key == "Backspace"){
activeCell.currentChar = "";
activeCell = m_orientation? activeCell.neighbour[1] : activeCell.neighbour[0];
}
else if (e.keyCode > 64 && e.keyCode < 91) {
activeCell.currentChar = e.key;
if (m_orientation) { //down
......
......@@ -6,5 +6,5 @@ improve input:
✅add replace mode (key=r)
insert mode:
✅only allow characters a..z and A..Z keycode 65..90
add backspacke functionality
add backspacke functionality
maybe arrowkeys
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment