HaxeFoundation / HaxeFoundation/haxe

[js] haxe generate code parms is redefined?

Open
#8,181 7 comments 0 reactions 0 assignees View on GitHub
enhancement platform-javascript priority-low
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

[js] haxe generate code parms is redefined?

haxe version :4.0.0-rc.2+78b5593f5

![image](https://user-images.githubusercontent.com/748320/56356966-dbe72900-620c-11e9-929f-e0c6d27f3d32.png)
//-------------------------------

```haxe
import js.Browser.window;
import js.html.KeyboardEvent;
import js.Browser;
class TestHuya {
public static function main() {
window.onload = function() {
window.onkeypress = function(e:KeyboardEvent) {
if (e.keyCode == KeyboardEvent.DOM_VK_F2) {
Browser.alert('click f2');
}
}
}
}
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.