bugfix(android): Allow Volume* keys to be passed to the user
This commit is contained in:
parent
2491f2bbd6
commit
7006c7ceca
2 changed files with 5 additions and 4 deletions
|
|
@ -255,3 +255,4 @@ changelog entry.
|
||||||
- On Windows, fix cursor not confined to center of window when grabbed and hidden.
|
- On Windows, fix cursor not confined to center of window when grabbed and hidden.
|
||||||
- On macOS, fix sequence of mouse events being out of order when dragging on the trackpad.
|
- On macOS, fix sequence of mouse events being out of order when dragging on the trackpad.
|
||||||
- On Wayland, fix decoration glitch on close with some compositors.
|
- On Wayland, fix decoration glitch on close with some compositors.
|
||||||
|
- On Android, fix a regression introduced in #2748 to allow volume key events to be received again.
|
||||||
|
|
|
||||||
|
|
@ -438,10 +438,10 @@ impl<T: 'static> EventLoop<T> {
|
||||||
// Flag keys related to volume as unhandled. While winit does not have a way for applications
|
// Flag keys related to volume as unhandled. While winit does not have a way for applications
|
||||||
// to configure what keys to flag as handled, this appears to be a good default until winit
|
// to configure what keys to flag as handled, this appears to be a good default until winit
|
||||||
// can be configured.
|
// can be configured.
|
||||||
Keycode::VolumeUp | Keycode::VolumeDown | Keycode::VolumeMute => {
|
Keycode::VolumeUp | Keycode::VolumeDown | Keycode::VolumeMute
|
||||||
if self.ignore_volume_keys {
|
if self.ignore_volume_keys =>
|
||||||
input_status = InputStatus::Unhandled
|
{
|
||||||
}
|
input_status = InputStatus::Unhandled
|
||||||
}
|
}
|
||||||
keycode => {
|
keycode => {
|
||||||
let state = match key.action() {
|
let state = match key.action() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue