private void addHotkeys(JRootPane pane){
  for (  Hotkey hotkey : hotkeys) {
    if (doesHotkeyHaveAction(hotkey) && hotkey.type == Type.REGULAR) {
      if (pane == null) {
        addHotkey(hotkey,main.getRootPane());
        for (        JDialog popout : popouts.keySet()) {
          addHotkey(hotkey,popout.getRootPane());
        }
      }
 else {
        addHotkey(hotkey,pane);
      }
    }
  }
}

private void addHotkeys ( JRootPane pane ) { for ( Hotkey hotkey : hotkeys ) { if ( doesHotkeyHaveAction ( hotkey ) && hotkey . type == Type . REGULAR ) { if ( pane == null ) { addHotkey ( hotkey , main . getRootPane ( ) ) ; for ( JDialog popout : popouts . keySet ( ) ) { addHotkey ( hotkey , popout . getRootPane ( ) ) ; } } else { addHotkey ( hotkey , pane ) ; } } } }
adds all regular hotkeys to the given jrootpane , or to all ( main and popouts ) if the pane is null .
