Skip to content

Commit 549b7b7

Browse files
committed
Prevent user from sending commands to carplay when carplay stream is hidden
1 parent bc34add commit 549b7b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function App() {
4949
if (system.switch) {
5050

5151
// If user is not switching the page, send control to CarPlay
52-
if (event.code !== system.switch) {
52+
if (event.code !== system.switch && system.view === 'Carplay') {
5353
if (Object.values(mmi!.bindings).includes(event.code)) {
5454
const action = Object.keys(mmi!.bindings).find(key =>
5555
mmi!.bindings[key] === event.code

0 commit comments

Comments
 (0)