Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #4936: The dropdown menus work similar to what the about and profile dropdown behave with the keyboard. #5974

Merged
merged 16 commits into from
Dec 28, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed unwanted functions
  • Loading branch information
geetchoudhary committed Dec 13, 2018
commit fce8fa3be7dd192ffb533f721b637ec312733fe4
18 changes: 0 additions & 18 deletions core/templates/dev/head/pages/library/SearchBarDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,24 +71,6 @@ oppia.directive('searchBar', [
angular.element(evt.currentTarget).focus();
$scope.activeMenuName = menuName;
};
$scope.blurNavigationLinks = function(evt) {
// This is required because if about submenu is in open state
// and when you hover on library, both will be highlighted,
// To avoid that, blur all the a's in nav, so that only one
// will be highlighted.
$('nav a').blur();
};
$scope.closeSubmenu = function(evt) {
$scope.activeMenuName = '';
angular.element(evt.currentTarget).closest('li')
.find('a').blur();
};
$scope.closeSubmenuIfNotMobile = function(evt) {
if (DeviceInfoService.isMobileDevice()) {
return;
}
$scope.closeSubmenu(evt);
};
/**
* Handles keydown events on menus.
* @param {object} evt
Expand Down