
Capacitor Keyboard
Handles keyboard events and behavior in Capacitor apps across iOS and Android. You get programmatic show/hide, visibility listeners with height info, configurable resize modes (body, ionic, native, none), and iOS accessory bar control. The CSS variable pattern for keyboard height is solid for positioning fixed inputs, and the scroll-to-input helper solves that annoying problem where the keyboard covers your active field. Configuration is straightforward through capacitor.config.ts. If you're building a chat app or any form-heavy mobile app with Capacitor, you'll need this to avoid the default janky keyboard behavior. The iOS 16px font size tip alone will save you from the auto-zoom headache.
- skills.sh installs
- 1.1K
- GitHub stars
- 77
- last updated
- Aug 21, 2026
Install
$ npx -y skills add cap-go/capgo-skills --skill capacitor-keyboard --agent claude-codeInstalls into .claude/skills of the current project.
Files
Keyboard Handling in Capacitor
When to Use
TRIGGER when:
- Focused input is covered by the keyboard, or the page scrolls unexpectedly
- Chat composer / fixed footer does not stick to the keyboard
- White or black band above the keyboard (Android 15+ edge-to-edge, iOS backdrop)
100vh/dvhlayout collapses when the keyboard opens- iOS zooms into inputs, or the QuickType/accessory bar looks wrong
- Keyboard events never fire or fire twice
Do not use:
- Notch / home-indicator / status-bar padding:
safe-area-handling - Ionic
ion-input,ion-footerstyling:ionic-design - Labels, focus order, screen readers:
capacitor-accessibility
Platform model (the key decision)
| iOS | Android | |
|---|---|---|
| Who resizes | Plugin, per resize mode | OS + WebView; resize config is ignored |
| Events | keyboardWillShow before animation, keyboardDidShow after | Will/Did fire almost together |
| JS control | setResizeMode, getResizeMode, setScroll, setStyle, setAccessoryBarVisible (iPhone only) | show() (Android only), hide() |
iOS resize modes (KeyboardResize enum):
Sponsors
Details
- Repository
- github.com/cap-go/capgo-skills
- Categories
- Documentation, Mobile Development
- First seen
- Jun 3, 2026
More from cap-go/capgo-skills
All 41- Capacitor Ci Cd1K
- Tailwind Capacitor1K
- Capacitor Mcp961
- Capacitor Apple Review Preflight956
- Framework To Capacitor912
- Capgo Live Updates897
- Konsta Ui874
- Cocoapods To Spm836
- Capacitor App Upgrades815
- Cordova To Capacitor807
- Capgo Cli Usage773
- Capacitor Plugin Upgrades772
- Capacitor Plugin Spm Support756
- Capgo Native Builds754
- Capgo Release Management749
- Capgo Release Workflows749
- Sqlite To Fast Sql749
- Capacitor App Upgrade V7 To V8744
- Capgo Cloud731
- Capgo Organization Management725
- Ionic Enterprise Sdk Migration719
- Skill Creator718
- Ionic Appflow Migration690
- Capacitor Plugin Upgrade V7 To V8683