Skip to content
cap-go avatar

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
View on GitHub

Own this skill? Claim it

What it does

  • Covers iOS resize modes (native, body, ionic, none), keyboard events, and when each mode fits a layout
  • Includes config examples for @capacitor/keyboard plus 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 -y

Installs 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 / dvh layout 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-footer styling: ionic-design
  • Labels, focus order, screen readers: capacitor-accessibility

Platform model (the key decision)

iOSAndroid
Who resizesPlugin, per resize modeOS + WebView; resize config is ignored
EventskeyboardWillShow before animation, keyboardDidShow afterWill/Did fire almost together
JS controlsetResizeMode, 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

Similar to Capacitor Keyboard

More Mobile Apps