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 d4fe411..8588d27 100644 (file)
                }
        }
 
+       public function selectAdvancedPanel():void {
+               checkAdvanced();
+               stack.selectedChild=advancedContainer;
+       }
+
       private function checkAdvanced():void {
           if ( selectedEntity != null )
              setupAdvanced(selectedEntity);
index da6be41..93f75a4 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;
                }