Don't capture control-tab events.
It's annoying not to be able to tab away from the page!
This commit is contained in:
parent
6c31389327
commit
f9558a34fa
|
@ -275,7 +275,7 @@ haste.prototype.configureButtons = function() {
|
||||||
$where: $('#box2 .new'),
|
$where: $('#box2 .new'),
|
||||||
label: 'New',
|
label: 'New',
|
||||||
shortcut: function(evt) {
|
shortcut: function(evt) {
|
||||||
return evt.ctrlKey && evt.keyCode === 78
|
return evt.ctrlKey && evt.keyCode === 78;
|
||||||
},
|
},
|
||||||
shortcutDescription: 'control + n',
|
shortcutDescription: 'control + n',
|
||||||
action: function() {
|
action: function() {
|
||||||
|
@ -363,7 +363,7 @@ haste.prototype.configureShortcuts = function() {
|
||||||
$(function() {
|
$(function() {
|
||||||
|
|
||||||
$('textarea').keydown(function(evt) {
|
$('textarea').keydown(function(evt) {
|
||||||
if (evt.keyCode === 9) {
|
if (evt.keyCode === 9 && ! evt.ctrlKey) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
var myValue = ' ';
|
var myValue = ' ';
|
||||||
// http://stackoverflow.com/questions/946534/insert-text-into-textarea-with-jquery
|
// http://stackoverflow.com/questions/946534/insert-text-into-textarea-with-jquery
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue