1
0
Fork 0
mirror of https://github.com/seejohnrun/haste-server.git synced 2024-11-22 20:51:21 +00:00

Don't capture control-tab events.

It's annoying not to be able to tab away from the page!
This commit is contained in:
Andrew Lorente 2014-07-23 11:29:23 -07:00
parent 6c31389327
commit f9558a34fa
2 changed files with 3 additions and 3 deletions

View file

@ -275,7 +275,7 @@ haste.prototype.configureButtons = function() {
$where: $('#box2 .new'),
label: 'New',
shortcut: function(evt) {
return evt.ctrlKey && evt.keyCode === 78
return evt.ctrlKey && evt.keyCode === 78;
},
shortcutDescription: 'control + n',
action: function() {
@ -363,7 +363,7 @@ haste.prototype.configureShortcuts = function() {
$(function() {
$('textarea').keydown(function(evt) {
if (evt.keyCode === 9) {
if (evt.keyCode === 9 && ! evt.ctrlKey) {
evt.preventDefault();
var myValue = ' ';
// http://stackoverflow.com/questions/946534/insert-text-into-textarea-with-jquery

File diff suppressed because one or more lines are too long