1
0
mirror of https://github.com/funamitech/mastodon synced 2024-12-11 13:19:01 +09:00

[Glitch] Fix 'focus the compose textarea' shortcut is not working

Port 3c315a68af to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
y.takahashi 2024-02-02 15:33:53 +09:00 committed by Claire
parent cce3f3d6da
commit 3894674200

View File

@ -483,7 +483,7 @@ class UI extends PureComponent {
handleHotkeyNew = e => { handleHotkeyNew = e => {
e.preventDefault(); e.preventDefault();
const element = this.node.querySelector('.compose-form__autosuggest-wrapper textarea'); const element = this.node.querySelector('.autosuggest-textarea__textarea');
if (element) { if (element) {
element.focus(); element.focus();