mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Avoid Esc shortcut to close Servo (#32603)
* Avoid Esc shortcut to close Servo Keep Esc shortcut to leave fullscreen, but avoid to close Servo (as this is not common in other similar apps, and can be shortcut used in some web apps for other things). * Send Esc to the page
This commit is contained in:
parent
aa99c85645
commit
574a22a6cd
2 changed files with 3 additions and 2 deletions
|
@ -186,7 +186,8 @@ Run Servo with the command:
|
|||
- `Ctrl`+`=` zooms in (`Cmd`+`=` on Mac)
|
||||
- `Alt`+`left arrow` goes backwards in the history (`Cmd`+`left arrow` on Mac)
|
||||
- `Alt`+`right arrow` goes forwards in the history (`Cmd`+`right arrow` on Mac)
|
||||
- `Esc` or `Ctrl`+`Q` exits Servo (`Cmd`+`Q` on Mac)
|
||||
- `Ctrl`+`Q` exits Servo (`Cmd`+`Q` on Mac)
|
||||
- `Esc` exits fullscreen
|
||||
|
||||
### Runtime dependencies
|
||||
|
||||
|
|
|
@ -343,7 +343,7 @@ where
|
|||
self.event_queue.push(event);
|
||||
}
|
||||
} else {
|
||||
self.event_queue.push(EmbedderEvent::Quit);
|
||||
self.platform_handle_key(key_event.clone());
|
||||
}
|
||||
})
|
||||
.otherwise(|| self.platform_handle_key(key_event));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue