Skip to content

Question: Wrong keycode expected when using shift modifier in EventsTest::testKeybordEvents? #36

Description

@robertfausk

When I send "r" to the browser then keycode 114 is used but when I send r and modifier shift to browser then keycode 82 is used.
I encounter a problem because test case always expects keycode 114.


Assertion:
$input2->keyPress('r', $modifier);
$this->assertEquals('key pressed:114 / '.$eventProperties, $event->getText());
Provider:
'ctrl' => array('ctrl', '0 / 1 / 0 / 1'),

Pressed r:
image
Pressed shift+r:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions