fixed keydown event processing to return NS_OK when a key is not handled.

This commit is contained in:
buster%netscape.com 1999-06-14 23:25:48 +00:00
parent eb6c46ed5d
commit e8cc730b08
2 changed files with 4 additions and 0 deletions

View File

@ -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.
}
}
}

View File

@ -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.
}
}
}