Keyboard functionality

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
master
sigonasr2, Sig, Sigo 2 years ago
parent 4d7c854228
commit 8c2c6e551a
  1. 5
      main.cpp

@ -96,7 +96,10 @@ public:
return true; return true;
} }
void GetAnyKeyPress(olc::Key pressed)override{ void GetAnyKeyPress(olc::Key k)override{
if (k>=A&&k<=Z){
document[cursors[0].line].insert(cursors[0].pos,std::string(1,Z-k));
}
} }
}; };

Loading…
Cancel
Save