Here's a minimal example, logging key events to the console...
- Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Example</title>
</head>
<body>
<script language="JavaScript" type="text/javascript">
function keyhandle(action, e) {
console.log( 'key' + action + ' event: ' + e.keyCode + ' ' + e.charCode );
}
onkeydown = function(e) { keyhandle( 'down', e ); };
onkeyup = function(e) { keyhandle( 'up', e ); };
onkeypress = function(e) { keyhandle( 'press', e ); };
</script>
<form>
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
When hosting the above in Chrome, I get the desired keydown/keyup events and can navigate between input fields with the keyboard. In CEF, I get only keyup events and must navigate with the mouse.
We plan on moving to the latest version of CEF soon, but doing so doesn't fit in our current release timetable.
Please let me know if you have any idea why it's behaving this way or suggestions on how to best address it.
Thanks,
Kurt Jacobson