Skip to content

check keydown event characters length on macos#23390

Merged
asmorkalov merged 1 commit intoopencv:3.4from
just-gull:bugfix.21401.fix-macos-crash-when-keypress-does-nothing
Apr 2, 2023
Merged

check keydown event characters length on macos#23390
asmorkalov merged 1 commit intoopencv:3.4from
just-gull:bugfix.21401.fix-macos-crash-when-keypress-does-nothing

Conversation

@just-gull
Copy link
Copy Markdown
Contributor

Fixes #21401

Check keydown event characters length before returning the pressed character code

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work

Copy link
Copy Markdown
Contributor

@VadimLevin VadimLevin left a comment

Choose a reason for hiding this comment

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

LGTM

From NSEvent characters property reference

This property is set to an empty string for dead keys, such as Option-e.

@asmorkalov asmorkalov merged commit 20eee64 into opencv:3.4 Apr 2, 2023
@just-gull just-gull deleted the bugfix.21401.fix-macos-crash-when-keypress-does-nothing branch April 2, 2023 09:49
@asmorkalov asmorkalov mentioned this pull request Apr 20, 2023
@asmorkalov asmorkalov mentioned this pull request May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants