[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:
parent
cce3f3d6da
commit
3894674200
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue