mirror of
https://github.com/jwinterm/grim.git
synced 2026-10-17 14:21:24 +02:00
mnemonic: trim input word
This commit is contained in:
@@ -304,6 +304,8 @@ impl MnemonicSetup {
|
||||
columns[1].vertical_centered_justified(|ui| {
|
||||
// Callback to save the word.
|
||||
let mut save = || {
|
||||
self.word_edit = self.word_edit.trim().to_string();
|
||||
|
||||
// Check if word is valid.
|
||||
let word_index = self.word_num_edit - 1;
|
||||
if !self.mnemonic.is_valid_word(&self.word_edit, word_index) {
|
||||
|
||||
Reference in New Issue
Block a user