diff --git a/main.cpp b/main.cpp index bef729f..99887fe 100644 --- a/main.cpp +++ b/main.cpp @@ -96,7 +96,10 @@ public: 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)); + } } };