Fix #7783, Fix #7816: [SDL2] Fix input handling in edit context

In particular this fixes handling of the shift key
This commit is contained in:
Jonathan G Rennison
2019-11-04 18:16:34 +00:00
committed by Charles Pigott
parent 1dba06656d
commit a15ace0f5b
2 changed files with 46 additions and 6 deletions

View File

@@ -37,10 +37,19 @@ public:
bool ClaimMousePointer() override;
void EditBoxGainedFocus() override;
void EditBoxLostFocus() override;
const char *GetName() const override { return "sdl"; }
private:
int PollEvent();
bool CreateMainSurface(uint w, uint h, bool resize);
/**
* This is true to indicate that keyboard input is in text input mode, and SDL_TEXTINPUT events are enabled.
*/
bool edit_box_focused;
};
/** Factory for the SDL video driver. */