szhilkin / mobileterminal

Automatically exported from code.google.com/p/mobileterminal
0 stars 0 forks source link

Shift behaves like Cap #196

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When I press Shift (no double-press for Caps!) it won't recognize that I typed 
a letter. Shift stays enabled and behaves like caps-lock.
I must manually disable it by tapping shift once again.

Original issue reported on code.google.com by dave.sto...@gmail.com on 9 Aug 2010 at 12:00

GoogleCodeExporter commented 8 years ago
I did a little investigation and it looks like this happens because 
shouldChangeCharactersInRange returns NO.  Its set to do this so that backspace 
continues to work regardless of what it thinks is in the input field.  We might 
be able to intercept characters some other way instead of overriding 
shouldChangeCharactersInRange?  Making that function return YES fixes the shift 
issue, but the breaks the backspace key.  We could also figure out another way 
to manually turn off the shift key when a key is pressed.

Original comment by allen.po...@gmail.com on 14 Aug 2010 at 7:40

GoogleCodeExporter commented 8 years ago
So, is there a convient way for this?
As far as my programming knowledge goes, which really is basic, there could 
just be an array of chars. Whenever Shift is pressed and one of those chars is 
then written, shift will be changed back to "false", or whatever then in Obj-C

Original comment by dave.sto...@gmail.com on 14 Aug 2010 at 8:01

GoogleCodeExporter commented 8 years ago
In order to fix some backspace issues on the ipad, I ended up re-writing the 
keyboard routines in r462 and fixing this as a side effect.

Original comment by allen.po...@gmail.com on 4 Oct 2010 at 1:38