Disabled Alt+num bindings

Closes #304
This commit is contained in:
Igor Zhukov 2014-06-04 19:50:31 +04:00
parent fcfe613339
commit c1a078e1d1
2 changed files with 11 additions and 16 deletions

View File

@ -56,21 +56,6 @@ angular.module('myApp.directives', ['myApp.filters'])
return true; return true;
} }
if (e.keyCode >= 48 && e.keyCode <= 57 && !e.shiftKey && e.altKey) { // Alt + [0-9 keys]
var currentSelected = $(scrollableWrap).find('.im_dialog_wrap a')[(e.keyCode - 48 || 10) - 1];
if (currentSelected) {
currentSelected.click();
}
return cancelEvent(e);
}
if (e.keyCode >= 96 && e.keyCode <= 105 && !e.shiftKey && e.altKey) { // Alt + [0-9 numpad keys]
var currentSelected = $(scrollableWrap).find('.im_dialog_wrap a')[(e.keyCode - 96 || 10) - 1];
if (currentSelected) {
currentSelected.click();
}
return cancelEvent(e);
}
if (e.keyCode == 27 || e.keyCode == 9 && e.shiftKey) { // ESC or Shift + Tab if (e.keyCode == 27 || e.keyCode == 9 && e.shiftKey) { // ESC or Shift + Tab
if (!searchFocused) { if (!searchFocused) {
searchField.focus(); searchField.focus();

View File

@ -20,6 +20,17 @@
<div class="modal_section changelog_version_wrap"> <div class="modal_section changelog_version_wrap">
<h3 class="modal_section_header changelog_version_title"> <h3 class="modal_section_header changelog_version_title">
<span class="pull-right">current version</span> <span class="pull-right">current version</span>
Version 0.1.4
</h3>
<div class="modal_section_body changelog_version_changes">
<ul class="list-unstyled changelog_version_changes_list">
<li>Added userpic history (click on the photo in user modal)</li>
</ul>
</div>
</div>
<div class="modal_section changelog_version_wrap">
<h3 class="modal_section_header changelog_version_title">
Version 0.1.3 Version 0.1.3
</h3> </h3>
<div class="modal_section_body changelog_version_changes"> <div class="modal_section_body changelog_version_changes">
@ -31,7 +42,6 @@
<li><strong>Esc</strong> or <strong>Shift+Tab</strong> - set focus to search field</li> <li><strong>Esc</strong> or <strong>Shift+Tab</strong> - set focus to search field</li>
<li><strong>Up/Down</strong> (while in search field) - move between conversations</li> <li><strong>Up/Down</strong> (while in search field) - move between conversations</li>
<li><strong>Enter</strong> (while in search field) - open selected or first conversation</li> <li><strong>Enter</strong> (while in search field) - open selected or first conversation</li>
<li><strong>Alt+[0-9]</strong> - switch to Nth conversation</li>
<li><strong>Alt+Up/Down</strong> - move to previous/next conversation</li> <li><strong>Alt+Up/Down</strong> - move to previous/next conversation</li>
</ul> </ul>
<li>Improved grouping for messages</li> <li>Improved grouping for messages</li>