Skip to content

Commit

Permalink
fix: smart keymapping disallow textfield input
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMoonThatRises committed Nov 5, 2023
1 parent 877a23e commit e53f429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PlayTools/Controls/Frontend/ControlMode.swift
Expand Up @@ -34,11 +34,11 @@ public class ControlMode: Equatable {
let centre = NotificationCenter.default
let main = OperationQueue.main
if PlaySettings.shared.noKMOnInput {
centre.addObserver(forName: UIApplication.keyboardDidHideNotification, object: nil, queue: main) { _ in
centre.addObserver(forName: UITextField.textDidEndEditingNotification, object: nil, queue: main) { _ in
ModeAutomaton.onKeyboardHide()
Toucher.writeLog(logMessage: "virtual keyboard did hide")
}
centre.addObserver(forName: UIApplication.keyboardWillShowNotification, object: nil, queue: main) { _ in
centre.addObserver(forName: UITextField.textDidBeginEditingNotification, object: nil, queue: main) { _ in
ModeAutomaton.onKeyboardShow()
Toucher.writeLog(logMessage: "virtual keyboard will show")
}
Expand Down

0 comments on commit e53f429

Please sign in to comment.