-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
feat(IText): deprecate KeyboardEvent#keyCode
in favor of key
#7865
Conversation
Code Coverage Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice and simple
else if (e.keyCode in keyMap) { | ||
func = keyMap[e.keyCode]; | ||
} | ||
else if ((e.key in this.ctrlKeysMapDown) && (e.ctrlKey || e.metaKey)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the ctrl maps come before the general key maps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eventually yes. Probably there was not overlapping?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No overlapping in fabric. I had in mind the dev wanting to override what happens when a ctrl modifier is active.
Current logic doesn't allow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a045103 fixes modifier priority
Code Coverage Summary
|
keyCode is probably deprecated, important is that key is fully available in all supported browser. Can we verify that? in case we don't need to support keyCode anymore. |
They are totally different. |
Now if I want to remove keyCode from this PR I will get a conflict with #7864 (This is the part I dislike about splitting PRs - but I do undersrand it's a must) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
i think that if we want to |
Code Coverage Summary
|
Code Coverage Summary
|
Code Coverage Summary
|
Code Coverage Summary
|
in case wild languages and keyboards I am not aware of
Code Coverage Summary
|
Code Coverage Summary
|
Code Coverage Summary
|
Code Coverage Summary
|
else if (e.keyCode in keyMap) { | ||
func = keyMap[e.keyCode]; | ||
} | ||
else if ((e.key in this.ctrlKeysMapDown) && (e.ctrlKey || e.metaKey)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a045103 fixes modifier priority
Code Coverage Summary
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
keyCode
(mdn states it is) in favor ofkey | code