input: Fix comments

This commit is contained in:
Hajime Hoshi 2018-04-22 01:39:28 +09:00
parent 2f4ca72dbd
commit 0544476419
2 changed files with 7 additions and 5 deletions

View File

@ -143,10 +143,10 @@ func init() {
0x91: "ScrollLock",
0x5d: "Menu",
// NOTE: On Edge, this key does not work. PrintScreen works only on keyup event, and PrintScreen doesn't work on Edge well.
//0x2C: "PrintScreen",
// On Edge, this key does not work. PrintScreen works only on keyup event.
// 0x2C: "PrintScreen",
// TODO: On Edge, it is impossible to tell KPEnter and Enter / KPEqual and Equal.
// On Edge, it is impossible to tell KPEnter and Enter / KPEqual and Equal.
// 0x0d: "KPEnter",
// 0x0c: "KPEqual",
}

View File

@ -35,8 +35,10 @@ func InputChars() []rune {
// IsKeyPressed returns a boolean indicating whether key is pressed.
//
// Known issue: On Edge browser, KeyKPEnter and KeyKPEqual don't work well.
// These keys are recognized as KeyEnter and KeyEqual.
// Known issue: On Edge browser, some keys don't work well:
//
// - KeyKPEnter and KeyKPEqual are recognized as KeyEnter and KeyEqual.
// - KeyPrintScreen is only treated at keyup event.
//
// This function is concurrent-safe.
func IsKeyPressed(key Key) bool {