mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
Update client.js
This commit is contained in:
parent
ac90041ebb
commit
c5b0a58518
|
@ -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
|
// initialize markdown engine
|
||||||
var markdownOptions = {
|
var markdownOptions = {
|
||||||
html: false,
|
html: false,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user