| Crates.io | tauri-plugin-ios-keyboard |
| lib.rs | tauri-plugin-ios-keyboard |
| version | 0.1.1 |
| created_at | 2025-08-10 10:41:07.278435+00 |
| updated_at | 2025-08-10 11:23:18.944363+00 |
| description | Tauri plugin for iOS keyboard event handling and management |
| homepage | |
| repository | https://github.com/pineapp/tauri-plugin-ios-keyboard |
| max_upload_size | |
| id | 1788781 |
| size | 161,263 |
A Tauri v2 plugin for handling iOS keyboard events in your Tauri applications.
Add the plugin to your Cargo.toml:
[dependencies]
tauri-plugin-ios-keyboard = "0.1"
use tauri_plugin_ios_keyboard;
fn main() {
tauri::Builder::default()
.plugin(tauri_plugin_ios_keyboard::init())
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
import { onKeyboardEvent } from 'tauri-plugin-ios-keyboard';
// Listen for keyboard events
const unlisten = await onKeyboardEvent((event) => {
console.log('Keyboard event:', event.payload);
// event.payload contains:
// - eventType: 'will-show' | 'did-show' | 'will-hide' | 'did-hide'
// - keyboardHeight: number
// - animationDuration: number
});
// Clean up when done
unlisten();
| Platform | Supported |
|---|---|
| iOS | ✅ |
| Android | ❌ |
| macOS | ❌ |
| Windows | ❌ |
| Linux | ❌ |
MIT OR Apache-2.0