New issue
Advanced search Search tips

Issue 887519 link

Starred by 1 user

Issue metadata

Status: Available
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

alt+i always inserts '^' character

Reported by alex.d...@gmail.com, Sep 20

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36

Steps to reproduce the problem:
1. listen to `keydown` event
2. call `preventDefault()`
3. alt+i always inserts ^ even if it should not

What is the expected behavior?
alt+i should not insert ^ if I call `preventDefault()`

What went wrong?
^ is inserted

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 69.0.3497.92  Channel: n/a
OS Version: OS X 10.13.6
Flash Version: 

Easy repro https://jsfiddle.net/rnL03gty/2/

```
var input = document.getElementById('in');
var output = document.getElementById('out');
input.focus();
input.addEventListener('keydown', function(e) {
  if (e.altKey && e.code === 'KeyI') {
  	e.preventDefault();
    output.innerHTML += 'preventing default!<br/>';
  }
});
```

Extracted from https://github.com/Microsoft/vscode/issues/41024
 
Cc: nzolghadr@chromium.org
Labels: Needs-Triage-M69
Labels: Triaged-ET Target-71 M-71 FoundIn-71
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on Mac 10.13.3 using chrome latest stable #69.0.3497.100 and latest canary #71.0.3559.0. Issue is specific to OS-mac.
This is a non-regression issue as it is observed from M60 old builds. 
Hence, marking it as untriaged to get more inputs from dev team.

Thanks...!!
Labels: KeyEvents
Status: Available (was: Untriaged)
Owner: garykac@chromium.org

Sign in to add a comment