From 0ad6b13fae13fcc41c505d86c36cf5c71df14400 Mon Sep 17 00:00:00 2001 From: Acaki Date: Mon, 1 Dec 2025 17:12:41 +0800 Subject: [PATCH] feat: add keyboard shortcut to disconnect & quit app --- VoidLink/Input/StreamView.h | 1 + VoidLink/Input/StreamView.m | 3 +++ 2 files changed, 4 insertions(+) diff --git a/VoidLink/Input/StreamView.h b/VoidLink/Input/StreamView.h index 5162d91c..8bbc1abf 100644 --- a/VoidLink/Input/StreamView.h +++ b/VoidLink/Input/StreamView.h @@ -24,6 +24,7 @@ - (void)toggleStatsOverlay; - (void)toggleMouseCapture; - (void)toggleMouseVisible; +- (void)disconnectAndQuitApp; @end diff --git a/VoidLink/Input/StreamView.m b/VoidLink/Input/StreamView.m index 67420196..636283f1 100644 --- a/VoidLink/Input/StreamView.m +++ b/VoidLink/Input/StreamView.m @@ -960,6 +960,9 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5; case UIKeyboardHIDUsageKeyboardC: [interactionDelegate toggleMouseVisible]; break; + case UIKeyboardHIDUsageKeyboardD: + [interactionDelegate disconnectAndQuitApp]; + break; default: break; }