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:21:55 UTC
svn commit: r1333471 - /pivot/site/trunk/deploy/tutorials/menu-bars.html
Author: smartini
Date: Thu May 3 14:21:55 2012
New Revision: 1333471
URL: http://svn.apache.org/viewvc?rev=1333471&view=rev
Log:
add clarification on how keystroke are processed (like in the related example here)
Modified:
pivot/site/trunk/deploy/tutorials/menu-bars.html
Modified: pivot/site/trunk/deploy/tutorials/menu-bars.html
URL: http://svn.apache.org/viewvc/pivot/site/trunk/deploy/tutorials/menu-bars.html?rev=1333471&r1=1333470&r2=1333471&view=diff
==============================================================================
--- pivot/site/trunk/deploy/tutorials/menu-bars.html (original)
+++ pivot/site/trunk/deploy/tutorials/menu-bars.html Thu May 3 14:21:55 2012
@@ -47,6 +47,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):