1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-19 00:20:25 +02:00

Better handling of keys held down when IDE takes focus

This commit is contained in:
Brian Fiete 2021-11-27 07:08:24 -08:00
parent ec61583db8
commit 88711eae69
2 changed files with 51 additions and 10 deletions

View file

@ -50,7 +50,9 @@ public:
bool mMouseVisible;
bool mHasFocus;
bool mSoftHasFocus; // Mostly tracks mHasFocus except for when we get an explicit 'LostFocus' callback
bool mAwaitKeyReleases;
DWORD mAwaitKeyEventTick;
DWORD mFocusLostTick;
bool mNeedsStateReset;
bool mKeyLayoutHasAltGr;
@ -58,6 +60,7 @@ public:
virtual LRESULT WindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
static LRESULT CALLBACK WindowProcStub(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
void RehupMouseOver(bool isMouseOver);
bool CheckKeyReleases(bool isKeyDown);
public:
WinBFWindow(BFWindow* parent, const StringImpl& title, int x, int y, int width, int height, int windowFlags);