mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 17:17:09 -04:00
Android: Fix typing in servers search filter not actually filtering, fix if you press 'enter' in on-screen keyboard in servers menu, the on-screen keyboard stayed open even after going in-game
This commit is contained in:
parent
a55580b107
commit
a95c17ab4e
@ -471,6 +471,7 @@ static void LInput_KeyChar(void* widget, char c) {
|
|||||||
static void LInput_TextChanged(void* widget, const cc_string* str) {
|
static void LInput_TextChanged(void* widget, const cc_string* str) {
|
||||||
struct LInput* w = (struct LInput*)widget;
|
struct LInput* w = (struct LInput*)widget;
|
||||||
LInput_SetText(w, str);
|
LInput_SetText(w, str);
|
||||||
|
if (w->TextChanged) w->TextChanged(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
static cc_bool LInput_DefaultInputFilter(char c) {
|
static cc_bool LInput_DefaultInputFilter(char c) {
|
||||||
|
@ -37,9 +37,13 @@ static cc_bool useBitmappedFont, hasBitmappedFont;
|
|||||||
static struct Bitmap dirtBmp, stoneBmp;
|
static struct Bitmap dirtBmp, stoneBmp;
|
||||||
#define TILESIZE 48
|
#define TILESIZE 48
|
||||||
|
|
||||||
void Launcher_SetScreen(struct LScreen* screen) {
|
static void CloseActiveScreen(void) {
|
||||||
Window_CloseKeyboard();
|
Window_CloseKeyboard();
|
||||||
if (activeScreen) activeScreen->Free(activeScreen);
|
if (activeScreen) activeScreen->Free(activeScreen);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Launcher_SetScreen(struct LScreen* screen) {
|
||||||
|
CloseActiveScreen();
|
||||||
activeScreen = screen;
|
activeScreen = screen;
|
||||||
if (!screen->numWidgets) screen->Init(screen);
|
if (!screen->numWidgets) screen->Init(screen);
|
||||||
|
|
||||||
@ -265,7 +269,7 @@ static void Launcher_Free(void) {
|
|||||||
Font_Free(&Launcher_HintFont);
|
Font_Free(&Launcher_HintFont);
|
||||||
hasBitmappedFont = false;
|
hasBitmappedFont = false;
|
||||||
|
|
||||||
activeScreen->Free(activeScreen);
|
CloseActiveScreen();
|
||||||
activeScreen = NULL;
|
activeScreen = NULL;
|
||||||
Window_FreeFramebuffer(&Launcher_Framebuffer);
|
Window_FreeFramebuffer(&Launcher_Framebuffer);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user