Guys,

I've got a webview and a page with input field.
I bind to 'keydown/keyup' events using jquery but for certain soft-
keys those events never arrive.

Key are different for different phones but it happens on every one
I've tested.

For example on Samsung GT-I5500 soft keys that do not trigger any
events in webview are:
- double crossed 'W',
- Paragraph symbol,
- Inverted question mark,
- Inverted exclamation mark,
- Weird small square next to cent symbol,
- 'restricted' symbol,
- 'copyrighted' symbol,
- degree symbol,
All those symbols are on page 2 and 3 of numeric keyboard (in
landscape mode).

I've checked Samsung Galaxy S, Samsung Nexus S, and HTC Desire HD with
android 2.2 and 2.3 - it also happens although keys are different.

Does anyone have an idea why it happens and what to do to know when
those keys are pressed?

Below is simple code example you can try (you need jquery):
---------------- cut -------------------
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">

<head>
<title>Test</title>
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
</head>

<body>
<div>
    <input type="text" id="test">
    <br/>
    <div id="i1"></div>
    <br/>
    <div id="i2"></div>
</div>

<script type="text/javascript" language="javascript">
$('#test').bind('keyup', function()
{
    var a = document.getElementById('i2');
    $(a).text('keyup: ' + $(this).val());
});

$('#test').bind('keydown', function()
{
    var a = document.getElementById('i1');
    $(a).text('down: ' + $(this).val());
});
</script>
</body>
</html>
---------------- cut -------------------

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to