Skip to content

Conversation

Ms2ger
Copy link
Contributor

@Ms2ger Ms2ger commented Feb 20, 2015

No description provided.

@hoppipolla-critic-bot
Copy link

Critic review: https://critic.hoppipolla.co.uk/r/4028

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@Ms2ger
Copy link
Contributor Author

Ms2ger commented Feb 24, 2015

CC @masayuki-nakano

@sideshowbarker
Copy link
Member

@Ms2ger this is waiting on something?

@Ms2ger
Copy link
Contributor Author

Ms2ger commented Oct 31, 2016

Yes, being reviewed.

<p><input id="target" value=""></p>
<ol class=instructions>
<li>Click in the above textbox using mouse
<li>Press and hold down '{CTRL}' key and then press '{ALT}' key on the keyboard
Copy link
Contributor

Choose a reason for hiding this comment

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

This sounds specific to MS products.

AltGraph on other platforms is represented by a key. Should we have a test that Left Ctrl, Right Alt actually produces Alt-Graph on windows; but doesn't produce Ctrl and Alt on as modifiers? (Chrome currently fails this but I plan on attempting to fix that one of these days)

Copy link
Contributor

Choose a reason for hiding this comment

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

Firefox also fails. And I don't think that it makes sense to treat Ctrl and Alt are inactive in such case because except Europe keyboard layouts, AltGr isn't so major. For example, Asian web developers may want to use Ctrl+Alt+foo for a shortcut key because most users use their country's primary keyboard layout or US keyboard layout.

So, from a point of view of compatibility with existing browsers, Ctrl + Alt on Windows should activate all of Alt, Control and AltGraph.

});
});
</script>
<p>KeyboardEvent Object Property key holds the key value of the key pressed</p>
Copy link
Contributor

Choose a reason for hiding this comment

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


window.onload = this.step_func(function() {
var target = document.getElementById("target");
target.addEventListener(event, this.step_func(function test_event(e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably location should be checked in https://github.com/w3c/web-platform-tests/blob/master/uievents/keyboard/key-manual.js and then this would be redundant

Copy link
Contributor

@dtapuska dtapuska left a comment

Choose a reason for hiding this comment

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

Drive-by review..

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.

6 participants