force_english_ime 0.0.1 copy "force_english_ime: ^0.0.1" to clipboard
force_english_ime: ^0.0.1 copied to clipboard

PlatformWindows

A Windows plugin for Flutter that forces English input mode by completely disabling IME. Prevents users from switching input methods via shortcuts like Shift or Ctrl+Space.

Changelog / 更新日志 #

All notable changes to this project will be documented in this file.

本文件记录了此项目的所有重要更改。

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.0.1 - 2024-01-12 #

Added / 新增 #

  • ✨ Initial release of force_english_ime plugin / force_english_ime 插件首次发布
  • ✅ Support for forcing English input mode on Windows / 支持在 Windows 上强制英文输入模式
  • ✅ Automatic IME state save and restore functionality / 自动保存和恢复输入法状态功能
  • ✅ Complete IME disable using ImmAssociateContext(hwnd, NULL) / 使用 ImmAssociateContext(hwnd, NULL) 完全禁用 IME
  • ✅ Accurate IME status detection using ImmGetConversionStatus / 使用 ImmGetConversionStatus 准确检测输入法状态
  • ✅ Focus widget integration for automatic control / Focus widget 集成实现自动控制
  • 📖 Comprehensive documentation with Chinese and English / 完整的中英文文档
  • 📝 Multiple use case examples (email, login, URL, code editor) / 多个使用案例(邮箱、登录、URL、代码编辑器)

Features / 功能特性 #

  • forceEnglishInput() - Force English input by completely disabling IME / 通过完全禁用 IME 强制英文输入
  • restoreOriginalIme() - Restore original IME state / 恢复原始输入法状态
  • isEnglishIme() - Check if current IME is in English mode / 检查当前输入法是否为英文模式
  • getPlatformVersion() - Get Windows platform version / 获取 Windows 平台版本

Technical Implementation / 技术实现 #

  • Uses Windows IMM (Input Method Manager) API / 使用 Windows IMM(输入法管理器)API
  • Prevents IME switching via keyboard shortcuts (Shift, Ctrl+Space, etc.) / 防止通过键盘快捷键切换输入法
  • Supports per-control IME management / 支持按控件管理输入法
  • Zero external dependencies / 零外部依赖

Platform Support / 平台支持 #

  • ✅ Windows 10 and above / Windows 10 及以上版本
  • ✅ Windows 8 / Windows 8
  • ✅ Windows 7 / Windows 7

Documentation / 文档 #

  • Complete README with installation guide / 完整的 README 和安装指南
  • 5 practical use cases / 5 个实用案例
  • API reference documentation / API 参考文档
  • Troubleshooting guide / 故障排除指南
  • Best practices / 最佳实践
1
likes
160
points
61
downloads

Publisher

unverified uploader

Weekly Downloads

A Windows plugin for Flutter that forces English input mode by completely disabling IME. Prevents users from switching input methods via shortcuts like Shift or Ctrl+Space.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on force_english_ime

Packages that implement force_english_ime