mirror of
https://github.com/SunRed/haste-server.git
synced 2024-11-23 17:50:19 +01:00
Fix ^n bug while editing
This commit is contained in:
parent
4d56fc0e61
commit
29a600fe87
2 changed files with 2 additions and 3 deletions
1
TODO
1
TODO
|
@ -4,7 +4,6 @@ maximum size of a haste
|
||||||
fix any annoying visual quirks
|
fix any annoying visual quirks
|
||||||
add FAVICON
|
add FAVICON
|
||||||
cache static in memory
|
cache static in memory
|
||||||
bug in ^n while editing
|
|
||||||
|
|
||||||
# shared version only
|
# shared version only
|
||||||
some way to do announcements easily (and use for ads)
|
some way to do announcements easily (and use for ads)
|
||||||
|
|
|
@ -101,7 +101,7 @@ haste.prototype.newDocument = function(hideHistory) {
|
||||||
}
|
}
|
||||||
this.setTitle();
|
this.setTitle();
|
||||||
this.lightKey();
|
this.lightKey();
|
||||||
this.$textarea.show('fast', function() {
|
this.$textarea.val('').show('fast', function() {
|
||||||
this.focus();
|
this.focus();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -170,7 +170,7 @@ haste.prototype.configureShortcuts = function() {
|
||||||
// ^N for new document
|
// ^N for new document
|
||||||
else if (evt.ctrlKey && evt.keyCode === 78) {
|
else if (evt.ctrlKey && evt.keyCode === 78) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
_this.newDocument();
|
_this.newDocument(!_this.doc.key);
|
||||||
}
|
}
|
||||||
// ^D for duplicate - only when locked
|
// ^D for duplicate - only when locked
|
||||||
else if (_this.doc.locked && evt.ctrlKey && evt.keyCode === 68) {
|
else if (_this.doc.locked && evt.ctrlKey && evt.keyCode === 68) {
|
||||||
|
|
Loading…
Reference in a new issue