From 8b7f4d4ea38175ad1ee6cd0fe7d478d1802876c1 Mon Sep 17 00:00:00 2001 From: Vadim ProductEngine Date: Fri, 16 Sep 2011 19:09:37 +0300 Subject: STORM-1600 FIXED Folder view stole "Delete" key presses from the line editor when renaming a newly created inventory item. Reason: LLFocusMgr::setKeyboardFocus() which is called from LLLineEditor::setFocus() makes the folder view the edit menu handler, thus it receives the Delete key presses instead of the line editor. Fix: Make sure the line editor becomes the edit menu handler whenever it's focused, no matter is it a child of a folder view or not. --- indra/llui/lllineeditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp index ebdd47ae80..06dfc90d83 100644 --- a/indra/llui/lllineeditor.cpp +++ b/indra/llui/lllineeditor.cpp @@ -198,6 +198,7 @@ LLLineEditor::~LLLineEditor() void LLLineEditor::onFocusReceived() { + gEditMenuHandler = this; LLUICtrl::onFocusReceived(); updateAllowingLanguageInput(); } -- cgit v1.2.3