Browse Source

Disabled Alt+num bindings

Closes #304
TitanNano-voice_recorder
Igor Zhukov 11 years ago
parent
commit
c1a078e1d1
  1. 15
      app/js/directives.js
  2. 12
      app/partials/changelog_modal.html

15
app/js/directives.js

@ -56,21 +56,6 @@ angular.module('myApp.directives', ['myApp.filters'])
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 (!searchFocused) {
searchField.focus();

12
app/partials/changelog_modal.html

@ -20,6 +20,17 @@
<div class="modal_section changelog_version_wrap">
<h3 class="modal_section_header changelog_version_title">
<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
</h3>
<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>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>Alt+[0-9]</strong> - switch to Nth conversation</li>
<li><strong>Alt+Up/Down</strong> - move to previous/next conversation</li>
</ul>
<li>Improved grouping for messages</li>

Loading…
Cancel
Save