maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   long press sends symbol, left, backspace, right (https://talk.maemo.org/showthread.php?t=58545)

jspenguin 2010-07-15 19:39

long press sends symbol, left, backspace, right
 
When you hold a key to enter a symbol, why does it send the symbol first, then left, backspace, and right, instead of just sending backspace, then the symbol?

This does not work in the terminal unless the application supports command-line editing (like bash), which excludes anything that asks for a password.

For example, if you try to enter 'abc123' to this program:
Code:

import getpass

text = getpass.getpass('Test password:')
print 'you typed: %r' % text

it prints:
Code:

you typed: 'abcq1\x1b[\x1b[Cw2\x1b[\x1b[Ce3\x1b[\x1b[C'
I also noticed that if you have a fixed length field in the browser, you can't enter a symbol as the last character using this method.

Why would they implement it this way?


All times are GMT. The time now is 11:55.

vBulletin® Version 3.8.8