Capacitor Keyboard
Guide that fixes on-screen keyboard issues in Capacitor apps, covering iOS resize modes and Android edge-to-edge behavior.
- CCM score
- 70 of 100
- skills.sh installs
- 1.1K
- GitHub stars
- 79
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers iOS
resizemodes (native,body,ionic,none), keyboard events, and when each mode fits a layout - Includes config examples for
@capacitor/keyboardplus custom composer positioning using keyboard height CSS variables - Enforces a 16px minimum input font size to prevent iOS zoom, and warns against disabling global user zoom
- Designed for apps where inputs are hidden behind the keyboard, footers float mid-screen, or the WebView leaves a gap above it
Install
$ npx -y skills add cap-go/capgo-skills --skill capacitor-keyboard -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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):
Details
- Repository
- github.com/cap-go/capgo-skills
- Categories
- Mobile Apps, Frontend & UI Code
- First seen
- Jun 3, 2026
Questions
What does the capacitor-keyboard skill help with?
The capacitor-keyboard skill fixes on-screen keyboard behavior in Capacitor apps that use @capacitor/keyboard. It covers iOS resize modes, keyboard show and hide events, the accessory bar, scroll behavior, and Android edge-to-edge gaps above the keyboard.
When should I use the capacitor-keyboard skill?
Use it when an input is hidden behind the keyboard, a fixed footer floats mid-screen, a vh layout shrinks, or keyboard events do not fire. It also applies when iOS zooms into inputs or a white or black band appears above the keyboard.
How do I install the capacitor-keyboard skill?
Run npx -y skills add cap-go/capgo-skills --skill capacitor-keyboard -y in your project. The skill then lets the agent apply keyboard fixes such as choosing an iOS resize mode and handling Android insets in your Capacitor app.
Which skills are near capacitor-keyboard in the Mobile Apps category?
In the Mobile Apps category, capacitor-keyboard sits alongside vercel-react-native-skills, animate-expo, write-swift, firebase-crashlytics and xcode-project-setup. It is the skill to reach for when the problem is specifically on-screen keyboard behavior in Capacitor.
More from cap-go/capgo-skills
All 41- Capacitor Ci Cd1.1K
- Tailwind Capacitor1.1K
- Capacitor Apple Review Preflight1K
- Capacitor Mcp1K
- Framework To Capacitor956
- Capgo Live Updates943
- Konsta Ui918
- Cocoapods To Spm881
- Capacitor App Upgrades859
- Cordova To Capacitor851
- Capgo Cli Usage817
- Capacitor Plugin Upgrades815
- Capacitor Plugin Spm Support800
- Capgo Native Builds798
- Capgo Release Workflows793
- Sqlite To Fast Sql793
- Capgo Release Management792
- Capacitor App Upgrade V7 To V8785
- Capgo Cloud776
- Capgo Organization Management768
- Ionic Enterprise Sdk Migration760
- Capacitor Plugin Upgrade V7 To V8724
- Skill Creator717
- Ionic Appflow Migration686
Similar to Capacitor Keyboard
More Mobile Appscapacitor-accessibilitySkillcap-go/capgo-skills1.3K installsAccessibility guide for Capacitor apps covering WebView text scaling, SPA focus, and native view reachability.
capacitor-uiPluginCap-go/capgo-skills79 starsMobile UI skills for Ionic, Konsta UI, Tailwind, safe-area handling, and iPad/foldable resizability in Capacitor apps.
adaptiveSkillandroid/skills3.2K installsAdaptive UI guidance for Compose across phones, tablets, foldables, desktop, TV, Auto, and XR.
capacitor-app-developmentSkillcapawesome-team/skills1.9K installsBroad guide covering Capacitor core concepts, configuration, platforms, and troubleshooting, excluding framework-specific and upgrade topics.