Skip to content

fix(chat): lower the keyboard before opening a request or join requests - #1150

Merged
bmc08gt merged 1 commit into
mainfrom
fix/dismiss-keyboard-chat-request
Oct 28, 2026
Merged

bmc08gt merged 1 commit into
mainfrom
fix/dismiss-keyboard-chat-request

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Opening a request from a chat while the keyboard is up presented the new screen over the raised keyboard. The composer is a UIKit layer that keeps focus, so none of these SwiftUI presentations lowered it.

  • ConversationScreen.afterKeyboardLowered(_:) runs a presentation once the keyboard is out of sight. If the keyboard is up, it calls KeyboardSuppressor.lower() and waits for the hide; otherwise it runs straight away. Resigning focus also stops the keyboard coming back when the presentation closes.
  • It wraps the timeline request card, the strip's Pay action, the join-requests anchor, and the Money sheet that leads to Request Money.
  • KeyboardHideWaiter moves out of ChatSearchScreen.swift into Flipcash/Utilities/ so both screens share it. No behaviour change in search.

Send Money (presentSendAmount) is unchanged and may still open over the keyboard.

@bmc08gt bmc08gt self-assigned this Oct 28, 2026
@bmc08gt
bmc08gt merged commit ff7d995 into main Oct 28, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant