FreeRDP / FreeRDP-WebConnect

A gateway for seamless access to your RDP-Sessions in any HTML5-compliant browser
519 stars 1.62k forks source link

Virtual keyboard on smartphone? #177

Open xbxfelipe opened 6 years ago

xbxfelipe commented 6 years ago

Hello, would you have any way to add the virtual keyboard? I did some tests with android and I did not succeed.

xbxfelipe commented 6 years ago

I was able to solve my problem in a simple way, I inserted after from rdp.Run ():

if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) 
{
vkbd.toggle();
}

but I found some problems like backspace has no event, I'm distributing the code to see if I can fix these small problems.

c64cosmin commented 6 years ago

@xbxfelipe You mean the Virtual Keyboard has no "backspace event"?

xbxfelipe commented 6 years ago

Sorry, I was wrong. I have no action on the backspace button

c64cosmin commented 6 years ago

https://github.com/FreeRDP/FreeRDP-WebConnect/blob/master/wsgate/webroot/js/vkb-debug.js#L553

Can you debug if the '\b' is correctly translated to keycode 8?

https://github.com/FreeRDP/FreeRDP-WebConnect/blob/master/wsgate/webroot/js/vkb-debug.js#L697