Skip to content

Commit

Permalink
[FIXED JENKINS-13723] Add keyboard shortcut for console output
Browse files Browse the repository at this point in the history
  • Loading branch information
jieryn committed May 18, 2012
1 parent 400cba5 commit f7b90da
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Expand Up @@ -224,13 +224,18 @@
<tr>
<td class="ks-help-section-key">g-c</td>
<td>:</td>
<td class="ks-help-section-desc">${%KeyboardShortcuts.JobPages.GoToChanges}</td>
<td class="ks-help-section-desc">${%KeyboardShortcuts.JobPages.GoToLastConsole}</td>
</tr>
<tr>
<td class="ks-help-section-key">g-C</td>
<td>:</td>
<td class="ks-help-section-desc">${%KeyboardShortcuts.JobPages.GoToConfigure}</td>
</tr>
<tr>
<td class="ks-help-section-key">g-g</td>
<td>:</td>
<td class="ks-help-section-desc">${%KeyboardShortcuts.JobPages.GoToChanges}</td>
</tr>
<tr>
<td class="ks-help-section-key">g-m</td>
<td>:</td>
Expand Down
Expand Up @@ -62,6 +62,7 @@ KeyboardShortcuts.JobPages.Title = Job Pages
KeyboardShortcuts.JobPages.BuildNow = Build now
KeyboardShortcuts.JobPages.GoToStatus = Go to Status
KeyboardShortcuts.JobPages.GoToChanges = Go to Changes
KeyboardShortcuts.JobPages.GoToLastConsole = Go to Last Console
KeyboardShortcuts.JobPages.GoToWorkspace = Go to Workspace
KeyboardShortcuts.JobPages.GoToConfigure = Go to Configure Job
KeyboardShortcuts.JobPages.GoToModules = Go to Modules
Expand Down
10 changes: 9 additions & 1 deletion src/main/webapp/js/keyboard-shortcuts.js
Expand Up @@ -248,7 +248,7 @@ if (ks_enabled) {
case 'c':
if (ks_previous_character_was_character('g')) {
if (ks_is_job()) {
ks_set_window_location(ks_url + '/' + ks_url_job + '/changes');
ks_set_window_location(ks_url + '/' + ks_url_job + '/lastBuild/console');
}
}
break;
Expand All @@ -267,6 +267,14 @@ if (ks_enabled) {
}
break;

case 'g':
if (ks_previous_character_was_character('g')) {
if (ks_is_job()) {
ks_set_window_location(ks_url + '/' + ks_url_job + '/changes');
}
}
break;

case 'h':
if (ks_previous_character_was_character('g')) {
ks_set_window_location(ks_url);
Expand Down

0 comments on commit f7b90da

Please sign in to comment.