зеркало из https://github.com/mozilla/gecko-dev.git
The allows TAB events to be processed. This seems to work fine, because the
forms controls can never get focus. I did a lot of testing and the focus goes to the toolbar and doesn't go to any forms controls. Bug 145388 r=dcone sr=attinasi
This commit is contained in:
Родитель
2ac0a67617
Коммит
503207a2ce
|
@ -125,7 +125,8 @@ static PRBool IsKeyOK(nsIDOMEvent* aEvent)
|
|||
{
|
||||
const PRUint32 kOKKeyCodes[] = {nsIDOMKeyEvent::DOM_VK_PAGE_UP, nsIDOMKeyEvent::DOM_VK_PAGE_DOWN,
|
||||
nsIDOMKeyEvent::DOM_VK_UP, nsIDOMKeyEvent::DOM_VK_DOWN,
|
||||
nsIDOMKeyEvent::DOM_VK_HOME, nsIDOMKeyEvent::DOM_VK_END, 0};
|
||||
nsIDOMKeyEvent::DOM_VK_HOME, nsIDOMKeyEvent::DOM_VK_END,
|
||||
nsIDOMKeyEvent::DOM_VK_TAB, 0};
|
||||
|
||||
nsCOMPtr<nsIDOMKeyEvent> keyEvent(do_QueryInterface(aEvent));
|
||||
if (keyEvent) {
|
||||
|
|
|
@ -125,7 +125,8 @@ static PRBool IsKeyOK(nsIDOMEvent* aEvent)
|
|||
{
|
||||
const PRUint32 kOKKeyCodes[] = {nsIDOMKeyEvent::DOM_VK_PAGE_UP, nsIDOMKeyEvent::DOM_VK_PAGE_DOWN,
|
||||
nsIDOMKeyEvent::DOM_VK_UP, nsIDOMKeyEvent::DOM_VK_DOWN,
|
||||
nsIDOMKeyEvent::DOM_VK_HOME, nsIDOMKeyEvent::DOM_VK_END, 0};
|
||||
nsIDOMKeyEvent::DOM_VK_HOME, nsIDOMKeyEvent::DOM_VK_END,
|
||||
nsIDOMKeyEvent::DOM_VK_TAB, 0};
|
||||
|
||||
nsCOMPtr<nsIDOMKeyEvent> keyEvent(do_QueryInterface(aEvent));
|
||||
if (keyEvent) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче