fixing tab mismaches

This commit is contained in:
Noel Berry 2021-03-26 00:58:43 -07:00
parent e406a9d3c6
commit 3b4f721b64

View File

@ -18,11 +18,11 @@
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#include <winuser.h> // for SetProcessDPIAware #include <winuser.h> // for SetProcessDPIAware
#include <filesystem> // for File Reading/Writing #include <filesystem> // for File Reading/Writing
#include <shellapi.h> // for file explore #include <shellapi.h> // for file explore
#include <shlobj.h> // for known folder #include <shlobj.h> // for known folder
#include <chrono> // for ticks method #include <chrono> // for ticks method
using namespace Blah; using namespace Blah;
namespace fs = std::filesystem; namespace fs = std::filesystem;
@ -260,16 +260,16 @@ LRESULT CALLBACK blah_window_procedure(HWND hwnd, UINT msg, WPARAM wParam, LPARA
// Text Input // Text Input
case WM_UNICHAR: case WM_UNICHAR:
if (wParam == UNICODE_NOCHAR) if (wParam == UNICODE_NOCHAR)
return 1; return 1;
case WM_CHAR: case WM_CHAR:
{ {
String result; String result;
result.append((u32)wParam); result.append((u32)wParam);
if (result.length() > 0) if (result.length() > 0)
InputBackend::on_text_utf8(result.cstr()); InputBackend::on_text_utf8(result.cstr());
return 0; return 0;
} }
// Keyboard Input // Keyboard Input
case WM_KEYDOWN: case WM_KEYDOWN: