Add a shortcut to pull up the shortcuts dialog.

(imported from commit 0d6d3ba78a06f0eb1ecba8e6a571b79709980cef)
This commit is contained in:
Waseem Daher 2012-10-24 18:15:36 -04:00
parent 50da6b14d1
commit 22a32c09c4
2 changed files with 9 additions and 0 deletions

View File

@ -83,6 +83,12 @@
<td class="hotkey">Spacebar</td>
<td class="definition">Scroll down several messages</td>
</tr>
<tr><th class="hotkey_heading" colspan="2">Miscellaneous</th></tr>
<tr>
<td class="hotkey">?</td>
<td class="definition">Open keyboard shortcut help</td>
</tr>
</table>
</div>

View File

@ -110,6 +110,9 @@ function process_hotkey(code) {
case 82: // 'R': respond to author
respond_to_message("personal");
return process_hotkey;
case 63: // '?': Show keyboard shortcuts page
$('#keyboard-shortcuts').modal('show');
return process_hotkey;
}
return false;