Open GoogleCodeExporter opened 9 years ago
this patch makes alt and shift keys to work like something i expect.
additionally just shift or alt send itself and each combination with regular
key gives x event with modifier like: press alt (do not release) => pressed
alt; press and release 'a' => pressed alt, pressed 'a', released alt, released
'a'; release alt => released alt. control key does not work anyway.
{{{
===================================================================
--- src/android/androidVNC/VncCanvas.java (revision 192)
+++ src/android/androidVNC/VncCanvas.java (working copy)
@@ -904,7 +904,7 @@
case KeyEvent.KEYCODE_DPAD_CENTER: key = 0xff0d; break;
default:
key = evt.getUnicodeChar();
- metaState = 0;
+ //metaState = 0;
break;
}
try {
}}}
Original comment by aleksey.4erepanov
on 9 Mar 2011 at 12:47
Thanks for the patch--
I think this might break most phone keyboards, but it might be something I
could make optional so it would work right with full keyboards like yours
BTW-- Are you still having problems building from source?
Original comment by googlec...@antlersoft.com
on 22 Mar 2011 at 2:49
Yes, i still have problems with build. But now i finished my experiments
because i am busy. I used some workarounds to make it comfortable to
work: i am using only this patch and settings in android keylayout to
place right keys in comfortable positions and setting in debian to remap
keys to do what i need. Now i do not have a working control key so i
remaped shift key to be control key in chrooted xserver (by
xmodmap). Also i remaped alt key to be shift key: for regular keys
vncclient sends alt+key and x makes it shift+key, for signs keys (1, 2, ...)
vncclient sends alt+shift+key (i think it is because for key '!' (if we
have so) vncclient sends shift+1) and x translates alt into shift and i
have shift+key as i need. For alt/meta key i use escape that i placed on
alt position. It is enough comfortable in a terminal or emacs. But
terminal (exactly gnome-terminal) does not understard 0x09 as a tab key
but emacs understands it so i am living in emacs (home sweet home). xev
says about sended tab key that it is '(no name)', i tried to remape it
into a real tab without any success. It needs more investigation...
As investigation start i planed to make an android app to show full
information about key pressed and then hardcode known values into
vncclient for me. Now i think it could be done in a more generalized way:
for instance as an universal configurable key translator in the
vncclient in which during setup user presses a key and the vncclient asks for a
mean of
that key that will be sended each time key will be pressed.
Original comment by aleksey.4erepanov
on 23 Mar 2011 at 10:08
May be i am wrong with ! and shift+1 but for `*` (aka STAR in keylayout) i see
shift+8 in xev.
Original comment by aleksey.4erepanov
on 23 Mar 2011 at 10:11
[deleted comment]
Original issue reported on code.google.com by
aleksey.4erepanov
on 7 Mar 2011 at 12:57