title of grouping tab can be customized by F2 key

This commit is contained in:
SHIMODA Hiroshi 2011-11-29 17:53:21 +09:00
parent 6c13384537
commit be484a2116

View File

@ -5,6 +5,12 @@
onclick="onClick(event)" onclick="onClick(event)"
ondblclick="onDblClick(event)" ondblclick="onDblClick(event)"
title="&group.default;"> title="&group.default;">
<commandset>
<command id="cmd_enterEdit" oncommand="enterEdit()"/>
</commandset>
<keyset>
<key keycode="VK_F2" command="cmd_enterEdit"/>
</keyset>
<stack flex="1"> <stack flex="1">
<box class="background-image-container"> <box class="background-image-container">
<image class="icon background-image"/> <image class="icon background-image"/>
@ -55,6 +61,8 @@ if (location.href.indexOf('?') > -1 && title) {
function enterEdit() function enterEdit()
{ {
if (gDeck.selectedIndex == 1) return;
gEdit.value = gLabel.value; gEdit.value = gLabel.value;
gDeck.selectedIndex = 1; gDeck.selectedIndex = 1;
gEdit.focus(); gEdit.focus();