mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 501496 part.11 <browser> should not handle keydown event when escape key is pressed during auto scroll r=enndeakin
This commit is contained in:
parent
74ada5744a
commit
9a611627d9
@ -1120,16 +1120,16 @@
|
||||
this.stopScroll();
|
||||
break;
|
||||
}
|
||||
case "keypress": {
|
||||
case "keydown": {
|
||||
if (aEvent.keyCode == aEvent.DOM_VK_ESCAPE) {
|
||||
// the escape key will be processed by
|
||||
// nsXULPopupManager::KeyPress and the panel will be closed.
|
||||
// So, nothing to do here.
|
||||
// nsXULPopupManager::KeyDown and the panel will be closed.
|
||||
// So, don't consume the key event here.
|
||||
break;
|
||||
}
|
||||
// don't break here. we need to eat keypress events.
|
||||
// don't break here. we need to eat keydown events.
|
||||
}
|
||||
case "keydown":
|
||||
case "keypress":
|
||||
case "keyup": {
|
||||
// All keyevents should be eaten here during autoscrolling.
|
||||
aEvent.stopPropagation();
|
||||
|
Loading…
Reference in New Issue
Block a user