Keyboard cut-off in Android

Greetings,

I’m currently maintaining software that relies on SDL 1.2 to run on Android. It’s designed to work on a horizontal screen but also supports vertical screens. The issue i’m encountering is that on vertical screens, if a text box is tapped and the keyboard shows up, only half of it appears on screen, the other half is off-canvas. This doesn’t happen in horizontal mode.

Can i disable the keyboard so that the native Android keyboard pops-up instead? Would that fix it?

I’ve been looking at export SDL_HINT_GRAB_KEYBOARD, would disabling it fix it?
Something like export SDL_HINT_GRAB_KEYBOARD=0 in the shell and compile with -DHAVE_GETENV?

Is there a way to define the keyboard width?

TIA