diff --git a/src/console/Handlers.cpp b/src/console/Handlers.cpp index 38880bb..e4e06a1 100644 --- a/src/console/Handlers.cpp +++ b/src/console/Handlers.cpp @@ -7,8 +7,23 @@ namespace { int32_t OnChar(const EVENT_DATA_CHAR* data, void* param) { - // TODO - return 1; + char character[2]; + + if (!EventIsKeyDown(ConsoleGetHotKey()) || !ConsoleAccessGetEnabled()) { + if (!ConsoleGetActive()) { + return 1; + } + + // Set the character value and null-terminate the buffer + character[0] = data->ch; + character[1] = '\0'; + + // TODO + // PasteInInputLine(character); + // ResetHighlight(); + } + + return 0; } int32_t OnIdle(const EVENT_DATA_IDLE* data, void* param) {