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", 0x91: "ScrollLock",
0x5d: "Menu", 0x5d: "Menu",
// NOTE: On Edge, this key does not work. PrintScreen works only on keyup event, and PrintScreen doesn't work on Edge well. // On Edge, this key does not work. PrintScreen works only on keyup event.
//0x2C: "PrintScreen", // 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", // 0x0d: "KPEnter",
// 0x0c: "KPEqual", // 0x0c: "KPEqual",
} }

View File

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