fix: if ModAlt is pressed while InputField is focused, do not handle the event

This commit is contained in:
rigormorrtiss 2021-08-31 17:55:37 +04:00
parent 9f79852e47
commit 4ecd386b61

View file

@ -200,6 +200,11 @@ func onMessagesTextViewInputCapture(e *tcell.EventKey) *tcell.EventKey {
}
func onMessageInputFieldInputCapture(e *tcell.EventKey) *tcell.EventKey {
// If the "Alt" modifier key is pressed, do not handle the event.
if e.Modifiers() == tcell.ModAlt {
return nil
}
switch e.Key() {
case tcell.KeyEnter:
if selectedChannel == nil {