ionic-team / ionic-team/capacitor-keyboard

Capacitor Keyboard height incorrect in Capacitor 6

Open
#20 10 comments 6 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3
Forks
21
PR merge metrics
No merged PRs in 30d

Description

## Bug Report

### Plugin(s)

Capacitor Keyboard

### Capacitor Version

6+

### Affected Platform(s)

Android all versions, for older versions (Android 9) the bug is even more severe where no keyboard callbacks are made when windowSoftInputMode adjustPan mode is enabled.

### Current Behavior

1. The keyboard height includes the navigation bar height, which makes it kind of useless (its non-consistent and requires manually calculating navigation bar height to make it meaningful) and is a breaking change since it didn't before.
2. There is no callback occuring on older versions of android with windowSoftInputMode adjustPan set.

### Expected Behavior

1. Keyboard height should only include the height inserted into the webview.
2. Keyboard callbacks should occur always when windowSoftInputMode adjustPan is set.

### Code Reproduction

### Other Technical Details

### Additional Context

See PR that broke functionality: https://github.com/ionic-team/capacitor-plugins/pull/1980

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.