diff --git a/libs/ride/src/ride/app.cc b/libs/ride/src/ride/app.cc index 9ec18b6..310d960 100644 --- a/libs/ride/src/ride/app.cc +++ b/libs/ride/src/ride/app.cc @@ -60,12 +60,6 @@ struct RideApp : api::App ViewFilesystem browser; KeyBind keybind; - void on_key_pressed(const api::Stroke& key) override - { - std::cout << "key pressed: " << to_string(key) << "\n"; - keybind.run(key, &commands); - } - void setup_view(View* view) { view->theme = &theme; @@ -160,6 +154,12 @@ struct RideApp : api::App add_move_select("alt+right", "word-end"); } + void on_key_released(const api::Stroke& stroke) override + { + std::cout << "key pressed: " << to_string(stroke) << "\n"; + this->keybind.run(stroke, &commands); + } + void draw(api::Renderer* cache) override { auto rect = Rect::from_size(client_size);