make + keypress work even if the advanced panel isn't currently selected
authorRichard Fairhurst <richard@systemed.net>
Tue, 28 Dec 2010 13:11:31 +0000 (13:11 +0000)
committerRichard Fairhurst <richard@systemed.net>
Tue, 28 Dec 2010 13:11:31 +0000 (13:11 +0000)
net/systemeD/potlatch2/TagViewer.mxml
net/systemeD/potlatch2/controller/ControllerState.as

index d4fe41118d6c48b6d469000a6e701a13de791327..8588d27092efbe2640d97f227c63d4397f43617d 100644 (file)
                }
        }
 
+       public function selectAdvancedPanel():void {
+               checkAdvanced();
+               stack.selectedChild=advancedContainer;
+       }
+
       private function checkAdvanced():void {
           if ( selectedEntity != null )
              setupAdvanced(selectedEntity);
index da6be4158f6d98c082ebe226979b445d1f86d922..93f75a429e7b1be0ddf90de12ef589b4132c2dd9 100644 (file)
@@ -66,8 +66,9 @@ package net.systemeD.potlatch2.controller {
                                case 83:        SaveManager.saveChanges(); break;                                                                               // S - save
                                case 84:        controller.tagViewer.togglePanel(); return null;                                                // T - toggle tags panel
                                case 90:        MainUndoStack.getGlobalStack().undo(); return null;                                             // Z - undo
-                               case 187:       controller.tagViewer.addNewTag(); return null;                                                  // + - add tag
-                               case Keyboard.NUMPAD_ADD:       controller.tagViewer.addNewTag(); return null;                                                  // numpad + - add tag
+                               case Keyboard.NUMPAD_ADD:                                                                                                                       // + - add tag
+                               case 187:       controller.tagViewer.selectAdvancedPanel();                                                             //   |
+                                                       controller.tagViewer.addNewTag(); return null;                                                  //   |
                        }
                        return null;
                }