Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape key is not transmitted to phone #102

Open
fipsy1 opened this issue Apr 19, 2016 · 7 comments
Open

Escape key is not transmitted to phone #102

fipsy1 opened this issue Apr 19, 2016 · 7 comments

Comments

@fipsy1
Copy link

fipsy1 commented Apr 19, 2016

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
Copy link
Owner

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
Copy link
Author

fipsy1 commented Apr 19, 2016

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" [email protected]
To: "IvanVolosyuk/wifikeyboard" [email protected]
Cc: "fipsy1" [email protected]
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:
#102 (comment)

@IvanVolosyuk
Copy link
Owner

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 [email protected] 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" [email protected]
To: "IvanVolosyuk/wifikeyboard" [email protected]
Cc: "fipsy1" [email protected]
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:

#102 (comment)


You are receiving this because you commented.

Reply to this email directly or view it on GitHub
#102 (comment)

@uyllii
Copy link

uyllii commented May 17, 2016

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
Copy link
Owner

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

On Tue, May 17, 2016 at 10:45 AM uyllii [email protected] 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
#102 (comment)

@fipsy1
Copy link
Author

fipsy1 commented May 17, 2016

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
Copy link

vusan commented Jun 9, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants