@@ -27,7 +27,8 @@ color: #a6a5a5; font-size: 14px; margin-bottom: 8px; - width: 100%; + width: 100%; + font-family: inherit; &_primary { font-weight: 500; @@ -47,7 +48,7 @@ outline: none; font-size: 16px; width: 100%; - font-family: '__Raleway_9d395e' !important; + font-family: inherit; &:focus { border: none; @@ -390,12 +390,20 @@ export function VoiceCloneSelect({ onClick={(e) => e.stopPropagation()} onMouseDown={(e) => e.stopPropagation()} onKeyDown={(e) => { + // Иначе MUI MenuList перехватывает печатные клавиши (typeahead) и перескакивает на другую опцию + if (e.key !== 'Escape') { + e.stopPropagation() + } if (e.key === 'Enter') { e.preventDefault() - e.stopPropagation() if (isMediaVoice(item)) void commitRename(item) } }} + onKeyUp={(e) => { + if (e.key !== 'Escape') { + e.stopPropagation() + } + }} aria-label='Название голоса' autoFocus />