Commit 2c58064f authored by Berthold Krevert's avatar Berthold Krevert Committed by The Qt Project
Browse files

Fix left/right cursor keys in TextArea

Since commit 5dc805c8

 key events for left/right cursor
get eaten by the MenuBar. That means, the events shouldn't be accepted
if no menu is shown.

Change-Id: Icc249a3c4d96e19e8c902276938a2972cf1364d9
Reviewed-by: default avatarJens Bache-Wiig <jens.bache-wiig@digia.com>
parent 59a6cb0b
No related merge requests found
Showing with 4 additions and 0 deletions
......@@ -176,6 +176,8 @@ MenuBarPrivate {
if (d.openedMenuIndex > 0) {
d.preselectMenuItem = true
d.openedMenuIndex--
} else {
event.accepted = false;
}
}
......@@ -183,6 +185,8 @@ MenuBarPrivate {
if (d.openedMenuIndex !== -1 && d.openedMenuIndex < root.menus.length - 1) {
d.preselectMenuItem = true
d.openedMenuIndex++
} else {
event.accepted = false;
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment