diff --git a/README.md b/README.md index 5e79bc5..c6df29d 100644 --- a/README.md +++ b/README.md @@ -70,9 +70,9 @@ fill_shape=false
- `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) @@ -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)
diff --git a/src/application.c b/src/application.c index 57d652f..a7914d7 100644 --- a/src/application.c +++ b/src/application.c @@ -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); @@ -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), @@ -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;