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:
rods%netscape.com 2002-05-23 10:48:37 +00:00
Родитель 2ac0a67617
Коммит 503207a2ce
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -125,7 +125,8 @@ static PRBool IsKeyOK(nsIDOMEvent* aEvent)
{ {
const PRUint32 kOKKeyCodes[] = {nsIDOMKeyEvent::DOM_VK_PAGE_UP, nsIDOMKeyEvent::DOM_VK_PAGE_DOWN, const PRUint32 kOKKeyCodes[] = {nsIDOMKeyEvent::DOM_VK_PAGE_UP, nsIDOMKeyEvent::DOM_VK_PAGE_DOWN,
nsIDOMKeyEvent::DOM_VK_UP, nsIDOMKeyEvent::DOM_VK_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)); nsCOMPtr<nsIDOMKeyEvent> keyEvent(do_QueryInterface(aEvent));
if (keyEvent) { if (keyEvent) {

Просмотреть файл

@ -125,7 +125,8 @@ static PRBool IsKeyOK(nsIDOMEvent* aEvent)
{ {
const PRUint32 kOKKeyCodes[] = {nsIDOMKeyEvent::DOM_VK_PAGE_UP, nsIDOMKeyEvent::DOM_VK_PAGE_DOWN, const PRUint32 kOKKeyCodes[] = {nsIDOMKeyEvent::DOM_VK_PAGE_UP, nsIDOMKeyEvent::DOM_VK_PAGE_DOWN,
nsIDOMKeyEvent::DOM_VK_UP, nsIDOMKeyEvent::DOM_VK_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)); nsCOMPtr<nsIDOMKeyEvent> keyEvent(do_QueryInterface(aEvent));
if (keyEvent) { if (keyEvent) {