Blog  |   Sitemap  |   Search  |   Language:  eng рус
Home
JavaScript UI FrameworkMostbet AzerbaycanBug TrackerBug details

Bug Data

ID: #0212
Status: Rejected
Severity: Normal
Reporter: 1ton
Submitted: 11-06-10 20:26

Product Data

Product: Ample SDK
Component: DOM Events
Version: 0.9.x
OS: > Any
Browser: Opera 9.x

Description

preventDefault() for keydown event does not work in one case for Opera

Here is a test-case:

<body>
<script type="application/ample+xml" xmlns="http://www.w3.org/1999/xhtml">
<div style="overflow: scroll; height: 140px; border: 1px solid blue;" onkeydown="event.preventDefault()">
<div style="height: 100px; border: 1px solid red;"></div>
<div style="height: 100px; border: 1px solid red; background: yellow;" id="test"></div>
<div style="height: 100px; border: 1px solid red;"></div>
<div style="height: 100px; border: 1px solid red;"></div>
</div>

</script>
<script type="text/javascript" src="ample/runtime.js"></script>
<script type="text/javascript" src="ample/languages/aml/aml.js"></script>
<script type="text/javascript" src="ample/languages/xhtml/xhtml.js"></script>
</body>

Click to the scrollable container and then try to use keyboard arrows to scroll to the top or bottom.

In all browsers except Opera content doesn't scrolling.

Messages written for this bug

Reporter: 1ton
Submitted: 11-06-10 20:29
Message: The same is in Opera 10.x

Reporter: Lev Matematik
Submitted: 11-06-10 23:55
Message: Cannot find a solution. If anyone knows how to fix it, please tell.

Add a message
BugTracker