Skip to content

Commit

Permalink
fix: add import/export level from/to clipboard action handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ShenMian committed Jan 17, 2024
1 parent fca91b1 commit d26f337
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/systems/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,21 @@ impl Action {
UserInput::Single(InputKind::Keyboard(KeyCode::P)),
Self::AutomaticSolution,
),
(
UserInput::Chord(vec![
InputKind::Keyboard(KeyCode::ControlLeft),
InputKind::Keyboard(KeyCode::V),
]),
Self::ImportLevelsFromClipboard,
),
(
UserInput::Chord(vec![
InputKind::Keyboard(KeyCode::ControlLeft),
InputKind::Keyboard(KeyCode::ShiftLeft),
InputKind::Keyboard(KeyCode::C),
]),
Self::ExportLevelToClipboard,
),
// Keyboard (Vim)
(
UserInput::Single(InputKind::Keyboard(KeyCode::K)),
Expand Down

0 comments on commit d26f337

Please sign in to comment.