diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-21 14:59:50 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-21 14:59:50 -0400 |
| commit | 59cfaa3faa461a69c47b4bfc7ace6c627d97f176 (patch) | |
| tree | 0716525152b37b4b2b70fa6fb6cbd825c6d542e4 | |
| parent | 2ff2cb6851313d3ff9fdbfefb4521b079785e3b4 (diff) | |
Whoops, also forgot about handling unwanted keystrokes in the final keyboard consensus in the Area planning document.
| -rw-r--r-- | areaplan.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/areaplan.md b/areaplan.md index 68a4627..0ad394f 100644 --- a/areaplan.md +++ b/areaplan.md @@ -745,6 +745,18 @@ type KeyArea struct { // Keys that have been held down are reported as multiple // key press events. Up bool + + // When you are finished processing the incoming event, + // send whether or not you did something in response + // to the given keystroke over Handled. If you send false, + // you indicate that you did not handle the keypress, and + // that the system should handle it instead. (Some systems + // will stop processing the keyboard event at all if you return + // true unconditionally, which may result in unwanted behavior + // like global task-switching keystrokes not being processed.) + // Only one value may be sent on Handled. Do not close Handled; + // the package will do it for you. + Handled chan<- bool } // ExtKey represents keys that do not have a Rune representation. |
