Skip to content

Commit

Permalink
fix crop dragging
Browse files Browse the repository at this point in the history
  • Loading branch information
Kl4rry committed May 12, 2024
1 parent 960c752 commit b21d1be
Show file tree
Hide file tree
Showing 5 changed files with 238 additions and 151 deletions.
46 changes: 23 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,29 +60,29 @@ Simp is a fast and simple GPU-accelerated image manipulation program.

## Keybinds

| Action | Input |
| -------------- | :------------------- |
| Open image | Ctrl + O |
| Save as | Ctrl + S |
| Reload image | F5 |
| New window | Ctrl + N |
| Undo | Ctrl + Z |
| Redo | Ctrl + Y |
| Copy | Ctrl + C |
| Paste | Ctrl + V |
| Resize | Ctrl + R |
| Rotate left | Q |
| Rotate right | E |
| Zoom in | - or Mousewheel up |
| Zoom out | + or Mousewheel down |
| Best fit | Ctrl + B |
| Largest fit | Ctrl + L |
| Crop | Ctrl + X |
| Fullscreen | F11 or F |
| Delete image | Delete |
| 1 - 9 | 100% - 900% Zoom |
| Previous image | A or Left arrow |
| Next image | D or Right arrow |
| Action | Input |
| ---------------- | :------------------- |
| Open image | Ctrl + O |
| Save as | Ctrl + S |
| Reload image | F5 |
| New window | Ctrl + N |
| Undo | Ctrl + Z |
| Redo | Ctrl + Y |
| Copy | Ctrl + C |
| Paste | Ctrl + V |
| Resize | Ctrl + R |
| Rotate left | Q |
| Rotate right | E |
| Zoom in | - or Mousewheel up |
| Zoom out | + or Mousewheel down |
| Best fit | Ctrl + B |
| Largest fit | Ctrl + L |
| Crop | Ctrl + X |
| Fullscreen | F11 or F |
| Delete image | Delete |
| 100% - 900% Zoom | Ctrl + 1 - 9 |
| Previous image | A or Left arrow |
| Next image | D or Right arrow |

## Runtime dependencies
The dav1d library is required for AVIF support and libheif is required for heif/heic support.
Expand Down
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ impl App {
let nums = [Num1, Num2, Num3, Num4, Num5, Num6, Num7, Num8, Num9];
for (i, num) in nums.into_iter().enumerate() {
if input.consume_shortcut(&KeyboardShortcut {
modifiers: Modifiers::NONE,
modifiers: Modifiers::CTRL,
logical_key: num,
}) {
if let Some(ref mut view) = self.image_view {
Expand Down
2 changes: 1 addition & 1 deletion src/app/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl App {
("Crop", "Ctrl + X"),
("F11 or F", "Fullscreen"),
("Delete image", "Delete"),
("1 - 9", "100% - 900% Zoom"),
("100% - 900% Zoom", "Ctrl + 1 - 9"),
("Previous image", "A or L or Left Arrow"),
("Next image", "D or H or Right Arrow"),
];
Expand Down
Loading

0 comments on commit b21d1be

Please sign in to comment.