Skip to content
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

add some keybinding to use left hand #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ fill_shape=false
<hr>

- `b`: Switch to Brush
- `t`: Switch to Text
- `e` `t`: Switch to Text
- `r`: Switch to Rectangle
- `o`: Switch to Ellipse
- `c` `o`: Switch to Ellipse
- `a`: Switch to Arrow
- `d`: Switch to Blur (`d` stands for droplet)

Expand All @@ -86,7 +86,7 @@ fill_shape=false
- `Plus`: Increase Stroke Size
- `Equal`: Reset Stroke Size
- `f`: Toggle Shape Filling
- `k`: Clear Paints (cannot be undone)
- `x` `k`: Clear Paints (cannot be undone)

<hr>

Expand Down
3 changes: 3 additions & 0 deletions src/application.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ void window_keypress_handler(GtkWidget *widget, GdkEventKey *event,
switch_mode_to_brush(state);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(state->ui->brush), true);
break;
case GDK_KEY_e:
case GDK_KEY_t:
switch_mode_to_text(state);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(state->ui->text), true);
Expand All @@ -389,6 +390,7 @@ void window_keypress_handler(GtkWidget *widget, GdkEventKey *event,
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(state->ui->rectangle),
true);
break;
case GDK_KEY_c:
case GDK_KEY_o:
switch_mode_to_ellipse(state);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(state->ui->ellipse),
Expand All @@ -402,6 +404,7 @@ void window_keypress_handler(GtkWidget *widget, GdkEventKey *event,
switch_mode_to_blur(state);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(state->ui->blur), true);
break;
case GDK_KEY_x:
case GDK_KEY_k:
action_clear(state);
break;
Expand Down