From f9df0b99470f905289126f253ede978b611d6333 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Mon, 15 Jul 2013 21:54:04 -0700 Subject: Keyboard input documentation: an event accepted does NOT bubble up Add missing negation for the code snippet demonstrating accepting a key event Change-Id: Ia4c1cc4f207df9fb6e041ff088c6da2a63cd47b9 Reviewed-by: Alan Alpert --- src/doc/src/declarative/focus.qdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/doc/src') diff --git a/src/doc/src/declarative/focus.qdoc b/src/doc/src/declarative/focus.qdoc index 7ed80b05..3d0dde98 100644 --- a/src/doc/src/declarative/focus.qdoc +++ b/src/doc/src/declarative/focus.qdoc @@ -56,8 +56,8 @@ is delivered to it. Otherwise, regular Qt key handling continues. stops. Otherwise the event is "bubbled up", by recursively passing it to each Item's parent until either the event is accepted, or the root Item is reached. -If the \c {Rectangle} element in the following example has active focus and the \c A key is pressed, -it will bubble up to its parent. However, pressing the \c B key will bubble up to the root +If the \c {Rectangle} type in the following example has active focus and the \c A key is pressed, +the event will not be propagated further. Pressing the \c B key the event will propagate to the root item and thus subsequently be ignored. \snippet doc/src/snippets/declarative/focus/rectangle.qml simple key event -- cgit v1.2.3