capacitor-keyboard

Manage keyboard visibility, scroll, accessory bar, and focus in Capacitor apps.

Updated Dec 5, 2024
One-click install
npx skills add https://github.com/yeohj0710/wellnessbox --skill capacitor-keyboard-yeohj0710
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: capacitor-keyboard
Source: https://github.com/yeohj0710/wellnessbox/tree/main/.agents/skills/capacitor-keyboard
Command: npx skills add https://github.com/yeohj0710/wellnessbox --skill capacitor-keyboard-yeohj0710

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides developers on handling keyboard behavior in Capacitor apps, including visibility detection, the accessory bar, scroll adjustments, and input focus management.

Core Features & Use Cases

  • Visibility detection to respond to when the keyboard appears or hides.
  • Keyboard accessory bar control and iOS-specific behavior tweaks.
  • Scroll management to keep inputs visible and avoid viewport overlap.
  • Input focus handling to improve form usability across platforms.
  • Easy configuration options to tailor resize behavior and styling for different apps.

Quick Start

Install the Capacitor keyboard plugin and synchronize the native platforms.

Frequently Asked Questions about capacitor-keyboard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle keyboard visibility in a Capacitor app?

Handle keyboard visibility in a Capacitor app by attaching event listeners for keyboardWillShow and keyboardWillHide. This detects when the keyboard appears or hides, allowing you to adapt the UI dynamically.

How do I keep input fields visible when the keyboard opens on iOS and Android?

Keep input fields visible by applying scroll management techniques that prevent viewport overlap. This Skill demonstrates how to adapt your UI using the detected keyboard height to maintain form usability across platforms.

Can I control the accessory bar in Capacitor mobile development?

Yes, you can control the accessory bar in Capacitor mobile development. This Skill provides guidance on disabling or adjusting the keyboard accessory bar, including specific behavior tweaks for iOS applications.

What configuration options are available for keyboard resize behavior in Capacitor?

Available configuration options for keyboard resize behavior in Capacitor include settings for resize, style, and resizeOnFullScreen. These options allow you to tailor how the app viewport reacts to the keyboard appearing.

Does this keyboard handling approach work for both iOS and Android Capacitor projects?

Yes, this keyboard handling approach works for both iOS and Android Capacitor projects. It provides cross-platform visibility handling, scroll adjustment, accessory bar control, and input focus management.