Skip to content

Commit

Permalink
fix: Allow transform by any key
Browse files Browse the repository at this point in the history
  • Loading branch information
huytd committed Oct 3, 2023
1 parent 31867f9 commit 02cd1c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,6 @@ impl InputState {

pub fn should_transform_keys(&self, c: &char) -> bool {

Check warning on line 262 in src/input.rs

View workflow job for this annotation

GitHub Actions / Build project

unused variable: `c`

Check warning on line 262 in src/input.rs

View workflow job for this annotation

GitHub Actions / Test project

unused variable: `c`
self.enabled
&& match self.method {
TypingMethod::VNI => c.is_numeric(),
TypingMethod::Telex => {
['a', 'e', 'o', 'd', 's', 't', 'j', 'f', 'x', 'r', 'w', 'z'].contains(c)
}
}
}

pub fn transform_keys(&self) -> Result<String, ()> {
Expand Down

0 comments on commit 02cd1c1

Please sign in to comment.