diff options
author | Vadim Savchuk <vsavchuk@productengine.com> | 2010-08-17 22:34:50 +0300 |
---|---|---|
committer | Vadim Savchuk <vsavchuk@productengine.com> | 2010-08-17 22:34:50 +0300 |
commit | b27c892bc560831d912d98156d904b5cd2713c66 (patch) | |
tree | c46b708dbf4a0d15b1bd705a2c4f52f119e3d3a8 /indra | |
parent | 2683006ff4a8325bc884a2861220b08964e7eaad (diff) |
EXT-8357 FIXED ESC key sometimes failing to de-focus the sidebar.
I've found out that the only case when pressing ESC doesn't transfer focus from side tray to game area is
when a flat list view (people, groups, teleport history, etc) is focused.
So, I fixed LLFlatListView to handle pressing ESC as expected.
Reviewed by Sergey Litovchuk at https://codereview.productengine.com/secondlife/r/862/
--HG--
branch : product-engine
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llui/llflatlistview.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llui/llflatlistview.cpp b/indra/llui/llflatlistview.cpp index 70558f8eb8..8de44455de 100644 --- a/indra/llui/llflatlistview.cpp +++ b/indra/llui/llflatlistview.cpp @@ -669,6 +669,14 @@ BOOL LLFlatListView::handleKeyHere(KEY key, MASK mask) } break; } + case KEY_ESCAPE: + { + if (mask == MASK_NONE) + { + setFocus(FALSE); // pass focus to the game area (EXT-8357) + } + break; + } default: break; } |