You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Using touch device, I toggle on screen keyboard: toggleVirtualKeyboard(). When it shows and hides, the noVNC _canvas resizes to fit the available viewport.
Describe the solution you'd like
I would like to have the on screen keyboard overlay the _canvas content so that it does not resize.
Describe alternatives you've considered
I've read through rfb.js and display.js which I assume contain some variable (min height/resize/isOverlay keyboard) but trial and error not lucky. Also tried remote/local/none scaling but I believe it is due to the canvas element resizing so viewport is not relevant.
Additional context
I think it's well explained and maybe even too simple a problem to ask, sorry I am beginner only. If any information requested I will provide. Thank you for your time.
The text was updated successfully, but these errors were encountered:
This was not a conscious decision, this is how the onscreen keyboard works on Android. It's difficult to make things work differently if you simultaneously want automatic resize.
I saw that you wrote on the mailing list; my answer there:
I'm guessing you're using an Android device? On iOS and iPadOS, the
keyboard works more as an "overlay", like you want.
Unfortunately, on Android the keyboard works differently, and the
browser creates a resize-event. It's difficult to determine if that
resize was triggered by opening the keyboard or by something else.
For your specific case, the easiest solution might be to disable remote
resize and set the session size manually on the remote instead.
With that patch alone, there are problems when the onscreen keyboard is closed by means other than the GUI button, but perhaps that can be fixed too.
CendioOssman
changed the title
Prevent _canvas resizing when toggleVirtualKeyboard() is invoked on touch device
Prevent session resize when on screen keyboard is opened
Aug 18, 2022
Is your feature request related to a problem? Please describe.
Using touch device, I toggle on screen keyboard: toggleVirtualKeyboard(). When it shows and hides, the noVNC _canvas resizes to fit the available viewport.
Describe the solution you'd like
I would like to have the on screen keyboard overlay the _canvas content so that it does not resize.
Describe alternatives you've considered
I've read through rfb.js and display.js which I assume contain some variable (min height/resize/isOverlay keyboard) but trial and error not lucky. Also tried remote/local/none scaling but I believe it is due to the canvas element resizing so viewport is not relevant.
Additional context
I think it's well explained and maybe even too simple a problem to ask, sorry I am beginner only. If any information requested I will provide. Thank you for your time.
The text was updated successfully, but these errors were encountered: