Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate flutter 3.19 #188

Closed
wants to merge 2 commits into from
Closed

chore: migrate flutter 3.19 #188

wants to merge 2 commits into from

Conversation

lollipopkit
Copy link

  • TextScaler
  • KeyEvent

ctrl: event.isControlPressed,
alt: event.isAltPressed,
shift: event.isShiftPressed,
ctrl: event.physicalKey == PhysicalKeyboardKey.controlLeft ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you'll find that the shift and control keys don't work as expected in your terminal editor. According to the RawKeyEvent docs the correct replacement for isShiftPressed is HardwareKeyboard.isShiftPressed.

See https://github.com/TerminalStudio/xterm.dart/pull/190/files#diff-d62cc3ae7257875f8ff5223bcb0ba25023d5e12166597467e693d3f10378b87eR423 for my implementation.

Hth!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I will modify it later. Thanks.

@lollipopkit
Copy link
Author

A better pr: #190

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants