mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
fixed keydown event processing to return NS_OK when a key is not handled.
This commit is contained in:
parent
eb6c46ed5d
commit
e8cc730b08
@ -167,6 +167,8 @@ nsTextEditorKeyListener::KeyDown(nsIDOMEvent* aKeyEvent)
|
||||
//return NS_OK to allow page scrolling.
|
||||
return NS_OK;
|
||||
break;
|
||||
default:
|
||||
return NS_OK; // this indicates that we have not handled the keyDown event in any way.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -167,6 +167,8 @@ nsTextEditorKeyListener::KeyDown(nsIDOMEvent* aKeyEvent)
|
||||
//return NS_OK to allow page scrolling.
|
||||
return NS_OK;
|
||||
break;
|
||||
default:
|
||||
return NS_OK; // this indicates that we have not handled the keyDown event in any way.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user