keyboard_invoker 2.0.0
keyboard_invoker: ^2.0.0 copied to clipboard
This plugin allows you to invoke keystrokes on the host machine from a Flutter application. It also has a built-in Recorder that allows you to record and replay keystrokes.
Changelog #
2.0.0 #
Due to too many breaking changes, i decided to raise the package version to 2.0.0
Changes #
- Changed
invokeMacroList
function name toinvokeKeys
invokeKeys
will now take a list ofKeyRecording
instead of a List of logicalKeyboardKeys, sologicalKeyboardKeysToMacro
is no longer needed, and got removed.- All recorder-related functions have been moved into a dedicated
KeyboardRecorder
class, which is now accessible as therecorder
property of theKeyboardInvoker
class. - Added
KeyMap
enum to represent the key mapping, instead of using the flutter logical key ids. TheKeyMap
enum can return theBaseKey
and theKeyRecording
for each key inside the enum. - Added
BaseKeyMap
class to map the logical keys to theBaseKey
classes. - Added
KeyRecordingsMap
class to convert a list ofLogicalKeyboardKey
to a list ofKeyRecording
. - Added
KeyRecording
class to represent a key recording, which includes the logical key id, description, and delay. - Added
KeyEventType
enum to represent the type of key event (keyDown, keyUp, keyInvoke). - Updated the example app.
1.0.0 #
- Initial release.