You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2012/05/03 16:22:13 UTC
svn commit: r1333472 - /pivot/trunk/tutorials/www/menu-bars.xml
Author: smartini
Date: Thu May 3 14:22:13 2012
New Revision: 1333472
URL: http://svn.apache.org/viewvc?rev=1333472&view=rev
Log:
add clarification on how keystroke are processed (like in the related example here)
Modified:
pivot/trunk/tutorials/www/menu-bars.xml
Modified: pivot/trunk/tutorials/www/menu-bars.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/menu-bars.xml?rev=1333472&r1=1333471&r2=1333472&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/menu-bars.xml (original)
+++ pivot/trunk/tutorials/www/menu-bars.xml Thu May 3 14:22:13 2012
@@ -41,6 +41,12 @@ limitations under the License.
</p>
<p>
+ Note that for a keystroke to be processed (for example assigned to a Menu Item),
+ a component must have the focus to receive the key event and propagate it up the component hierarchy.
+ So, make sure that the window's content contains a focusable component, like a TextInput or PushButton.
+ </p>
+
+ <p>
The example application below shows a menu bar containing two common top-level menu
items: "File" and "Edit" (note that the applet is signed since it makes use of the
<tt>FileBrowserSheet</tt> component, which requires access to the local file system):