keyboard-shortcuts: fixed missing go to pull requests shortcut.

This commit is contained in:
Marcin Kuzminski 2019-11-15 16:35:42 +01:00
parent 44b53cd335
commit 6745626166

View file

@ -119,6 +119,10 @@ function setRCMouseBindings(repoName, repoLandingRev) {
'f_path': ''
});
});
Mousetrap.bind(['g p'], function(e) {
window.location = pyroutes.url(
'pullrequest_show_all', {'repo_name': repoName});
});
Mousetrap.bind(['g o'], function(e) {
window.location = pyroutes.url(
'edit_repo', {'repo_name': repoName});