auto merge of #4822 : KiChjang/servo/constellation-frame-handling, r=jdm

Attempt at fixing #4795. Code has been written to check for the existence for the current frame, but it seems to pass the condition every time.
This commit is contained in:
bors-servo 2015-02-04 10:06:56 -07:00
commit 58a3cdcbef
3 changed files with 17 additions and 11 deletions

View file

@ -358,8 +358,10 @@ impl<Window: WindowMethods> IOCompositor<Window> {
}
}
(Msg::KeyEvent(key, modified), ShutdownState::NotShuttingDown) => {
self.window.handle_key(key, modified);
(Msg::KeyEvent(key, state, modified), ShutdownState::NotShuttingDown) => {
if state == KeyState::Pressed {
self.window.handle_key(key, modified);
}
}
(Msg::SetCursor(cursor), ShutdownState::NotShuttingDown) => {