summaryrefslogtreecommitdiff
path: root/area.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-07 12:56:10 -0400
committerPietro Gagliardi <[email protected]>2014-04-07 12:56:10 -0400
commit00acf74177e520c2f961fb478e7674d24c9077c9 (patch)
treee4b292f5a4e97f8e065f64bcaeac89ffe5c6641c /area.go
parent14bb9e3621ebb7839f1542510289e6b9035dce64 (diff)
Updated Area's KeyEvent documentation to talk about some window managers on Unix intercepting some events; also updated the keyboard test program to make a note of behaviors related to that.
Diffstat (limited to 'area.go')
-rw-r--r--area.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/area.go b/area.go
index aee1684..5dfce26 100644
--- a/area.go
+++ b/area.go
@@ -124,6 +124,11 @@ func (e MouseEvent) HeldBits() (h uintptr) {
// unconditionally, which may result in unwanted behavior like
// global task-switching keystrokes not being processed.)
//
+// Note that even given the above, some systems might intercept
+// some keystrokes (like Alt-F4 on various Unix systems) before
+// Area will ever see them (and the Area might get an incorrect
+// KeyEvent in this case, but this is not guaranteed); be wary.
+//
// If a key is pressed that is not supported by Key, ExtKey,
// or Modifiers, no KeyEvent will be produced, and package
// ui will act as if false was returned for handled.