infobars: Intercept some keys when the info bar is shown to allow interacting with...
commit100e0e1bf17e496dbe728a3637d199157d93b10e
authorThomas Martitz <kugel@rockbox.org>
Sat, 24 May 2014 12:37:24 +0000 (24 14:37 +0200)
committerThomas Martitz <kugel@rockbox.org>
Sat, 24 May 2014 13:05:33 +0000 (24 15:05 +0200)
tree5f9922d670646565df449f34a5c3a4d8c2052f53
parent1dc96f1e50fad6d68ef1d27aa44ef25a9652db38
infobars: Intercept some keys when the info bar is shown to allow interacting with it using the keyboard only.

When the info bar is shown tab/shift+tab and escape are intercepted.
* tab/shift+tab change the focus to the info bar buttons which can then be
  cycled through with more tab presses
* escape closes the info bar (same as clicking cancel)

Both keys aren't needed for the document because it's read-only. Other keys,
such arrow/page up/down, remain to the document for navigating.
src/document.c