diff --git a/src/platform_impl/android/mod.rs b/src/platform_impl/android/mod.rs index 08dbb6752d..f10016d9d6 100644 --- a/src/platform_impl/android/mod.rs +++ b/src/platform_impl/android/mod.rs @@ -438,10 +438,10 @@ impl EventLoop { // 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 // can be configured. - Keycode::VolumeUp | Keycode::VolumeDown | Keycode::VolumeMute => { - if self.ignore_volume_keys { - input_status = InputStatus::Unhandled - } + Keycode::VolumeUp | Keycode::VolumeDown | Keycode::VolumeMute + if self.ignore_volume_keys => + { + input_status = InputStatus::Unhandled } keycode => { let state = match key.action() {