mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
commit
2fac02d430
|
@ -7,6 +7,14 @@
|
|||
*
|
||||
*/
|
||||
|
||||
//select "chatinput" on "/"
|
||||
document.addEventListener("keydown", e => {
|
||||
if (e.key === '/' && document.getElementById("chatinput") != document.activeElement) {
|
||||
e.preventDefault();
|
||||
document.getElementById("chatinput").focus();
|
||||
}
|
||||
});
|
||||
|
||||
// initialize markdown engine
|
||||
var markdownOptions = {
|
||||
html: false,
|
||||
|
|
Loading…
Reference in New Issue
Block a user