mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-18 02:52:47 +03:00
fix(console): revert OnChar handler due to the fact that the original console does not support Unicode
This commit is contained in:
parent
3993e9bde0
commit
1327702451
@ -12,14 +12,15 @@ static int32_t s_historyIndex = 0;
|
||||
namespace {
|
||||
|
||||
int32_t OnChar(const EVENT_DATA_CHAR* data, void* param) {
|
||||
char character[8] = {};
|
||||
char character[2] = {};
|
||||
|
||||
if (ConsoleAccessGetEnabled() && EventIsKeyDown(ConsoleGetHotKey())) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (ConsoleGetActive()) {
|
||||
SUniSPutUTF8(data->ch, character);
|
||||
character[0] = char(data->ch);
|
||||
character[1] = 0;
|
||||
|
||||
PasteInInputLine(character);
|
||||
ResetHighlight();
|
||||
|
Loading…
Reference in New Issue
Block a user