diff --git a/README.md b/README.md index 7cd6531785..48edde3d27 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,9 @@ _From the repository's pull requests; rewritten when one is opened, merged or cl | Contributor | Pull request | Opened | State | |---|---|---|---| | [@xXJSONDeruloXx](https://github.com/xXJSONDeruloXx) | [#1](https://github.com/The412Banner/SteamDeck/pull/1) initial decky installer stuff | 2026-09-23 | draft | +| [@xXJSONDeruloXx](https://github.com/xXJSONDeruloXx) | [#3](https://github.com/The412Banner/SteamDeck/pull/3) Fix hardware back in Steam session | 2026-09-23 | open | -- **@xXJSONDeruloXx**: 1 submitted, 0 merged +- **@xXJSONDeruloXx**: 2 submitted, 0 merged ## Requirements diff --git a/app/src/main/java/com/steamdeck/launcher/SessionActivity.kt b/app/src/main/java/com/steamdeck/launcher/SessionActivity.kt index cde3779686..11c7e98246 100644 --- a/app/src/main/java/com/steamdeck/launcher/SessionActivity.kt +++ b/app/src/main/java/com/steamdeck/launcher/SessionActivity.kt @@ -504,7 +504,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback { KeyEvent.KEYCODE_VOLUME_UP, KeyEvent.KEYCODE_VOLUME_DOWN, KeyEvent.KEYCODE_VOLUME_MUTE -> return super.dispatchKeyEvent(event) } - if (padBridge?.onKeyEvent(event) == true) return true + if (event.keyCode != KeyEvent.KEYCODE_BACK && padBridge?.onKeyEvent(event) == true) return true // A hardware keyboard, forwarded to the compositor's wl_keyboard. Back is left to the // activity, which opens the drawer. val fromPad = event.device != null && PadBridge.isFromController(event.device)