make mobile channels not autofocus
This commit is contained in:
@@ -22,6 +22,7 @@ import {Member} from "./member.js";
|
|||||||
import {Voice} from "./voice.js";
|
import {Voice} from "./voice.js";
|
||||||
import {User} from "./user.js";
|
import {User} from "./user.js";
|
||||||
import {I18n} from "./i18n.js";
|
import {I18n} from "./i18n.js";
|
||||||
|
import {mobile} from "./utils/utils.js";
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface NotificationOptions {
|
interface NotificationOptions {
|
||||||
@@ -968,7 +969,9 @@ class Channel extends SnowFlake {
|
|||||||
? "visible"
|
? "visible"
|
||||||
: "hidden";
|
: "hidden";
|
||||||
(document.getElementById("typediv") as HTMLElement).style.visibility = "visible";
|
(document.getElementById("typediv") as HTMLElement).style.visibility = "visible";
|
||||||
|
if (!mobile) {
|
||||||
(document.getElementById("typebox") as HTMLDivElement).focus();
|
(document.getElementById("typebox") as HTMLDivElement).focus();
|
||||||
|
}
|
||||||
await this.putmessages();
|
await this.putmessages();
|
||||||
await prom;
|
await prom;
|
||||||
if (id !== Channel.genid) {
|
if (id !== Channel.genid) {
|
||||||
|
Reference in New Issue
Block a user