mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 14:25:08 +08:00
UX: close thread panel with a single escape (#31426)
Before this commit we were requiring two escapes: - one to un-focus composer - one to close panel
This commit is contained in:
@ -73,13 +73,8 @@ export default class ChatComposerThread extends ChatComposer {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.isFocused) {
|
||||
event.stopPropagation();
|
||||
this.composer.blur();
|
||||
} else {
|
||||
this.pane.close().then(() => {
|
||||
this.channelComposer.focus();
|
||||
});
|
||||
}
|
||||
this.pane.close().then(() => {
|
||||
this.channelComposer.focus();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user