You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary
Pressing "Return" in the "Switch Channels" dialog adds a newline to the text input box after you've switched channels.
*Steps to reproduce
Open Mattermost Desktop
Press Cmd+K to open the "Switch Channels" dialog.
Start typing the name of a channel.
When the desired channel is selected in the auto complete drop down, press "Return" to choose the channel.
Now that the desired channel is selected, press "Return" again to commit the change and close the dialog.
Notice that you are now in the desired channel and that the input area has a newline inserted with the cursor focused on the text input box.
Operating System: macOS Sierra 10.12.4
Mattermost Desktop App version: 3.6.0
Mattermost Server version: 3.7.3
Expected behavior
I should be in the desired channel with the cursor focused on an empty text box.
Observed behavior
I am in the desired channel with the cursor focused on a textbox that has a newline inserted.
Possible fixes
My guess is that the code that responds to the "Return" keypress that closes the "Switch Channels" dialog box is bubbling the event up and allowing the main window to respond to the keypress as well. The keypress event should be cancelled in the dialog.
The text was updated successfully, but these errors were encountered:
I confirm (by marking "x" in the [ ] below):
Summary
Pressing "Return" in the "Switch Channels" dialog adds a newline to the text input box after you've switched channels.
*Steps to reproduce
Expected behavior
I should be in the desired channel with the cursor focused on an empty text box.
Observed behavior
I am in the desired channel with the cursor focused on a textbox that has a newline inserted.
Possible fixes
My guess is that the code that responds to the "Return" keypress that closes the "Switch Channels" dialog box is bubbling the event up and allowing the main window to respond to the keypress as well. The keypress event should be cancelled in the dialog.
The text was updated successfully, but these errors were encountered: