IvanVolosyuk / wifikeyboard

Automatically exported from code.google.com/p/wifikeyboard
GNU General Public License v2.0
169 stars 54 forks source link

Escape key is not transmitted to phone #102

Open fipsy1 opened 8 years ago

fipsy1 commented 8 years ago

This is a problem because some applications need the Escape-Key. For example the vi editor in the terminal emulator. It cannot be used with wifikeyboard.

IvanVolosyuk commented 8 years ago

Have you tried "Remote Keyboard" app which uses telnet protocol for communication? It might be a better feet for you. What do you think?

There was some issues with ESCAPE handling in browser AFAIR or android keyboard didn't had corresponding keycode. It might have changed by now.

fipsy1 commented 8 years ago

Hi!

Thank you very much for your quick answer! :)

Yes, I also tried remote keyboard with windows telnet client and also with putty client. It has exactly the same issue on both clients. :-/

If I'm using an external bluetooth keyboard with my android phone and the "external keyboard helper" app the escape key works fine. So there must be a way for the keyboard app to send Esc to the phone. Perhaps it could be a solution just to define a special key for sending Escape if it doesn't work due to browser-restricions (perhaps Ctrl-F1 or something like that)?!

Cheers, Volker

----- Original Message ----- From: "Ivan Volosyuk" notifications@github.com To: "IvanVolosyuk/wifikeyboard" wifikeyboard@noreply.github.com Cc: "fipsy1" vulle@web.de Sent: Tuesday, April 19, 2016 2:32 PM Subject: Re: [IvanVolosyuk/wifikeyboard] Escape key is not transmitted to phone (#102)

Have you tried "Remote Keyboard" app which uses telnet protocol for communication? It might be a better feet for you. What do you think?

There was some issues with ESCAPE handling in browser AFAIR or android keyboard didn't had corresponding keycode. It might have changed by now.


You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/IvanVolosyuk/wifikeyboard/issues/102#issuecomment-211902280

IvanVolosyuk commented 8 years ago

Ctrl-F1 for Escape in VIM? I'm not sure it will be usable experience. If you willing to use different key for escape in vim look at this: http://vim.wikia.com/wiki/Avoid_the_escape_key

On Wed, Apr 20, 2016 at 12:16 AM fipsy1 notifications@github.com wrote:

Hi!

Thank you very much for your quick answer! :)

Yes, I also tried remote keyboard with windows telnet client and also with putty client. It has exactly the same issue on both clients. :-/

If I'm using an external bluetooth keyboard with my android phone and the "external keyboard helper" app the escape key works fine. So there must be a way for the keyboard app to send Esc to the phone. Perhaps it could be a solution just to define a special key for sending Escape if it doesn't work due to browser-restricions (perhaps Ctrl-F1 or something like that)?!

Cheers, Volker

----- Original Message ----- From: "Ivan Volosyuk" notifications@github.com To: "IvanVolosyuk/wifikeyboard" wifikeyboard@noreply.github.com Cc: "fipsy1" vulle@web.de Sent: Tuesday, April 19, 2016 2:32 PM Subject: Re: [IvanVolosyuk/wifikeyboard] Escape key is not transmitted to phone (#102)

Have you tried "Remote Keyboard" app which uses telnet protocol for communication? It might be a better feet for you. What do you think?

There was some issues with ESCAPE handling in browser AFAIR or android keyboard didn't had corresponding keycode. It might have changed by now.


You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub:

https://github.com/IvanVolosyuk/wifikeyboard/issues/102#issuecomment-211902280

— You are receiving this because you commented.

Reply to this email directly or view it on GitHub https://github.com/IvanVolosyuk/wifikeyboard/issues/102#issuecomment-211940082

uyllii commented 8 years ago

This is an issue for me too (not VI but another app). The Telnet based 'Remote Keyboard' app is not a solution either as telnet uses escape key for commands and cannot send it either.

'Hackers Keyboard' is an open source android (on screen) keyboard that can send ESC key, maybe you could do the same using that method? https://github.com/klausw/hackerskeyboard

IvanVolosyuk commented 8 years ago

Interesting hack: if (isConnectbot()) { sendKeyChar((char) 27); } else { sendModifiedKeyDownUp(111 /KeyEvent.KEYCODE_ESCAPE /); }

On Tue, May 17, 2016 at 10:45 AM uyllii notifications@github.com wrote:

This is an issue for me too (not VI but another app). The Telnet based 'Remote Keyboard' app is not a solution either as telnet uses escape key for commands and cannot send it either.

'Hackers Keyboard' is an open source android (on screen) keyboard that can send ESC key, maybe you could do the same using that method? https://github.com/klausw/hackerskeyboard

— You are receiving this because you commented.

Reply to this email directly or view it on GitHub https://github.com/IvanVolosyuk/wifikeyboard/issues/102#issuecomment-219590127

fipsy1 commented 8 years ago

I appreciate the hint to redefine the Escape key in vim configuration. This works fine. But every other solution would really be appreciated that makes it possible to directly send the Escape key!

vusan commented 4 years ago

There is no need to press ESC key. I'm not even pressing ESC in desktop vim editor either. I do like this. Go to .vimrc and add this line anywhere imap jj <esc> That means for ESC, you just have to press j twice. I do not know how to edit .vimrc file in vi terminator emulator. But I am using DroidVim. In DroidVim you can edit .vimrc file by long press at the DroidVim editor. Then the list appears where there is also Edit .vimrc menu.