src/extensions/default/RecentProjects/main.js
function handleKeyEvent() {
        if (!$dropdown) {
            if (!SidebarView.isVisible()) {
                SidebarView.show();
            }

            $("#project-dropdown-toggle").trigger("click");

            $dropdown.focus();
            $links = $dropdown.find("a");
            // By default, select the most recent project (which is at the top of the list underneath Open Folder),
            // but if there are none, select Open Folder instead.
            $dropdownItem = $links.eq($links.length > 1 ? 1 : 0);
            $dropdownItem.addClass("selected");

            // If focusing the dropdown caused a modal bar to close, we need to refocus the dropdown
            window.setTimeout(function () {
                $dropdown.focus();
            }, 0);
        }
    }
function handleKeyEvent() {
        if (!$dropdown) {
            if (!SidebarView.isVisible()) {
                SidebarView.show();
            }

            $("#project-dropdown-toggle").trigger("click");

            $dropdown.focus();
            $links = $dropdown.find("a");
            // By default, select the most recent project (which is at the top of the list underneath Open Folder),
            // but if there are none, select Open Folder instead.
            $dropdownItem = $links.eq($links.length > 1 ? 1 : 0);
            $dropdownItem.addClass("selected");

            // If focusing the dropdown caused a modal bar to close, we need to refocus the dropdown
            window.setTimeout(function () {
                $dropdown.focus();
            }, 0);
        }
    }
function handleKeyEvent ( ) { if ( ! $dropdown ) { if ( ! SidebarView . isVisible ( ) ) { SidebarView . show ( ) ; } $ ( "#project-dropdown-toggle" ) . trigger ( "click" ) ; $dropdown . focus ( ) ; $links = $dropdown . find ( "a" ) ; // By default, select the most recent project (which is at the top of the list underneath Open Folder), // but if there are none, select Open Folder instead. $dropdownItem = $links . eq ( $links . length > 1 ? 1 : 0 ) ; $dropdownItem . addClass ( "selected" ) ; // If focusing the dropdown caused a modal bar to close, we need to refocus the dropdown window . setTimeout ( function ( ) { $dropdown . focus ( ) ; } , 0 ) ; } }
Show or hide the recent projects dropdown from the toogle command.
Show or hide the recent projects dropdown from the toogle command .