question: 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 ) ; } } } }
target:  Adds all regular hotkeys to the given JRootPane, or to all (main and popouts) if the pane is null.