mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-01-16 04:58:37 +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 {
|
namespace {
|
||||||
|
|
||||||
int32_t OnChar(const EVENT_DATA_CHAR* data, void* param) {
|
int32_t OnChar(const EVENT_DATA_CHAR* data, void* param) {
|
||||||
char character[8] = {};
|
char character[2] = {};
|
||||||
|
|
||||||
if (ConsoleAccessGetEnabled() && EventIsKeyDown(ConsoleGetHotKey())) {
|
if (ConsoleAccessGetEnabled() && EventIsKeyDown(ConsoleGetHotKey())) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ConsoleGetActive()) {
|
if (ConsoleGetActive()) {
|
||||||
SUniSPutUTF8(data->ch, character);
|
character[0] = char(data->ch);
|
||||||
|
character[1] = 0;
|
||||||
|
|
||||||
PasteInInputLine(character);
|
PasteInInputLine(character);
|
||||||
ResetHighlight();
|
ResetHighlight();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user