mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 03:41:58 +00:00
streams: Add hotkey for content-editable enter.
When you enter, it should click the checkmark, which would save the current input of the input section.
This commit is contained in:
committed by
Tim Abbott
parent
d21fe68e9e
commit
dbcd19bcfa
@@ -470,6 +470,8 @@ $(function () {
|
|||||||
$(this).attr("contenteditable", false);
|
$(this).attr("contenteditable", false);
|
||||||
$(this).text($(this).attr("data-prev-text"));
|
$(this).text($(this).attr("data-prev-text"));
|
||||||
$("[data-make-editable]").html("");
|
$("[data-make-editable]").html("");
|
||||||
|
} else if (e.which === 13) {
|
||||||
|
$(this).siblings(".checkmark").click();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user