# SDL: Revert "Stop beep when running iOS apps on ARM-based Macs" (5e932)

**URL:** <https://discourse.libsdl.org/t/sdl-revert-stop-beep-when-running-ios-apps-on-arm-based-macs-5e932/45176>\
**Category:** SDL Commits\
**Created:** [August 2, 2023, 8:30am UTC](https://discourse.libsdl.org/t/sdl-revert-stop-beep-when-running-ios-apps-on-arm-based-macs-5e932/45176 "2023-08-02T08:30:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [August 2, 2023, 8:30am UTC](https://discourse.libsdl.org/t/sdl-revert-stop-beep-when-running-ios-apps-on-arm-based-macs-5e932/45176/1 "2023-08-02T08:30:02Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/5e9320f6b5f4492fea026f1d9c14a4b9787f7a22>
>
> This reverts commit bbf38bbbc334bc0ee90d3eec228a968d8fc1689e, which prevented te…xt input from working when a hardware keyboard was connected, since key strokes don't get to the text input field.
> 
> Fixes https://github.com/libsdl-org/SDL/issues/7958
> 
> (cherry picked from commit f5ea6ae18d860796184b9b31a2005957cb7e30a2)

```diff
From 5e9320f6b5f4492fea026f1d9c14a4b9787f7a22 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 1 Aug 2023 20:38:45 -0700
Subject: [PATCH] Revert "Stop beep when running iOS apps on ARM-based Macs"

This reverts commit bbf38bbbc334bc0ee90d3eec228a968d8fc1689e, which prevented text input from working when a hardware keyboard was connected, since key strokes don't get to the text input field.

Fixes https://github.com/libsdl-org/SDL/issues/7958

(cherry picked from commit f5ea6ae18d860796184b9b31a2005957cb7e30a2)
---
 src/video/uikit/SDL_uikitview.m | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/video/uikit/SDL_uikitview.m b/src/video/uikit/SDL_uikitview.m
index a862273d71ab..c35864897bc9 100644
--- a/src/video/uikit/SDL_uikitview.m
+++ b/src/video/uikit/SDL_uikitview.m
@@ -412,6 +412,7 @@ - (void)pressesBegan:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)eve
             SDL_SendKeyboardKey(SDL_PRESSED, scancode);
         }
     }
+ [super pressesBegan:presses withEvent:event];
 }
 
 - (void)pressesEnded:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event
@@ -422,6 +423,7 @@ - (void)pressesEnded:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)eve
             SDL_SendKeyboardKey(SDL_RELEASED, scancode);
         }
     }
+ [super pressesEnded:presses withEvent:event];
 }
 
 - (void)pressesCancelled:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event
@@ -432,11 +434,13 @@ - (void)pressesCancelled:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *
             SDL_SendKeyboardKey(SDL_RELEASED, scancode);
         }
     }
+ [super pressesCancelled:presses withEvent:event];
 }
 
 - (void)pressesChanged:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event
 {
     /* This is only called when the force of a press changes. */
+ [super pressesChanged:presses withEvent:event];
 }
 
 #endif /* TARGET_OS_TV || defined(__IPHONE_9_1) */

```
