Skip to content

Pause/break support #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
submodules: true

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Build Code
run: cargo build --verbose

- name: Test Code
run: cargo test --verbose

- name: Get Branch Name
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/')
id: branch_name
run: |
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}

- name: Create Release
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/')
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ steps.branch_name.outputs.SOURCE_TAG }}
draft: false
prerelease: false
25 changes: 25 additions & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Clippy

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
clippy-check:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy

- name: Run Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
19 changes: 19 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Format

on: [push, pull_request]

jobs:
format-check:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt

- name: Check Format
run: cargo fmt -- --check
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fn main() {

## Minimum Supported Rust Version (MSRV)

This crate is guaranteed to compile on stable Rust 1.31 and up. It might compile with older versions but that may change in any new patch release.
This crate is guaranteed to compile on stable Rust 1.40 and up. It might compile with older versions but that may change in any new patch release.

## License

Expand Down
6 changes: 2 additions & 4 deletions src/layouts/azerty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,8 @@ impl KeyboardLayout for Azerty {
}
}
KeyCode::NumpadEnter => DecodedKey::Unicode(10.into()),
KeyCode::ShiftLeft => {
DecodedKey::Unicode('<')
}
KeyCode::ShiftLeft => DecodedKey::Unicode('<'),
k => DecodedKey::RawKey(k),
}
}
}
}
2 changes: 1 addition & 1 deletion src/layouts/colemak.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,4 +480,4 @@ impl KeyboardLayout for Colemak {
k => DecodedKey::RawKey(k),
}
}
}
}
2 changes: 1 addition & 1 deletion src/layouts/de104.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ impl KeyboardLayout for De104Key {
DecodedKey::Unicode('<')
}
}

e => <super::Us104Key as KeyboardLayout>::map_keycode(e, modifiers, handle_ctrl),
}
}
Expand Down
1 change: 0 additions & 1 deletion src/layouts/jis109.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/// A standard Japan 106-key (or 109-key including Windows keys) keyboard.
/// Has a 2-row high Enter key, with Backslash above.

use crate::{DecodedKey, HandleControl, KeyCode, KeyboardLayout, Modifiers};

pub use super::us104::Us104Key;
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/uk105.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ impl KeyboardLayout for Uk105Key {
e => <super::Us104Key as KeyboardLayout>::map_keycode(e, modifiers, handle_ctrl),
}
}
}
}
2 changes: 1 addition & 1 deletion src/layouts/us104.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,4 +480,4 @@ impl KeyboardLayout for Us104Key {
k => DecodedKey::RawKey(k),
}
}
}
}
Loading