mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-10 09:21:23 +00:00
Monotone-Parent: 6df5fda5f5dd4cf08493fa5086b30a1bbf5c0b2d
Monotone-Revision: 1306f5dc489a510d74accc34d99229210cecdb1e Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-06-17T16:22:26 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -270,10 +270,10 @@ function clickedEditorSave(sender) {
|
||||
|
||||
function onTextFocus(event) {
|
||||
if (MailEditor.textFirstFocus) {
|
||||
// On first focus, position the caret at the proper position
|
||||
var content = this.getValue();
|
||||
var replyPlacement = UserDefaults["ReplyPlacement"];
|
||||
if (replyPlacement == "above") {
|
||||
this.insertBefore(document.createTextNode("\r\r"), this.lastChild);
|
||||
if (replyPlacement == "above" || !mailIsReply) { // for forwards, place caret at top unconditionally
|
||||
this.setCaretTo(0);
|
||||
}
|
||||
else {
|
||||
@@ -281,7 +281,7 @@ function onTextFocus(event) {
|
||||
if (Prototype.Browser.IE)
|
||||
caretPosition -= lineBreakCount(this.getValue().substring(0, caretPosition));
|
||||
if (hasSignature())
|
||||
caretPosition -= 1;
|
||||
caretPosition -= 2;
|
||||
this.setCaretTo(caretPosition);
|
||||
}
|
||||
MailEditor.textFirstFocus = false;
|
||||
@@ -294,7 +294,7 @@ function onTextFocus(event) {
|
||||
|
||||
function onTextKeyDown(event) {
|
||||
if (event.keyCode == Event.KEY_TAB) {
|
||||
// Change behavior of tab key
|
||||
// Change behavior of tab key in textarea
|
||||
if (event.shiftKey) {
|
||||
var subjectField = $$("div#subjectRow input").first();
|
||||
subjectField.focus();
|
||||
|
||||
Reference in New Issue
Block a user