Satisfy Issue 904: Add option to close appearance floater with Esc
Setting AppearanceCloseOnEscape to true will turn this on.
This commit is contained in:
@@ -2127,6 +2127,17 @@ This should be as low as possible, but too low may break functionality</string>
|
||||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>AppearanceCloseOnEscape</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>When in appearance editing mode, hitting escape will work the same as the close button</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>AppearanceSpecialLighting</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
||||
@@ -132,6 +132,8 @@ void LLMorphView::setVisible(BOOL visible)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (LLFloaterCustomize::instanceExists() && gSavedSettings.getBOOL("AppearanceCloseOnEscape"))
|
||||
LLFloaterCustomize::instance().onClose(false);
|
||||
shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user