mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 22:06:02 +01:00
Overwrite abort inputbar bindings
This commit is contained in:
parent
5674c6652e
commit
207f5e571d
2 changed files with 5 additions and 1 deletions
4
config.c
4
config.c
|
@ -295,6 +295,10 @@ config_load_default(zathura_t* zathura)
|
|||
girara_shortcut_add(gsession, 0, 0, "zZ", sc_zoom, NORMAL, ZOOM_SPECIFIC, NULL);
|
||||
girara_shortcut_add(gsession, 0, 0, "zZ", sc_zoom, FULLSCREEN, ZOOM_SPECIFIC, NULL);
|
||||
|
||||
/* inputbar shortcuts */
|
||||
girara_inputbar_shortcut_add(gsession, 0, GDK_KEY_Escape, sc_abort, 0, NULL);
|
||||
girara_inputbar_shortcut_add(gsession, GDK_CONTROL_MASK, GDK_KEY_c, sc_abort, 0, NULL);
|
||||
|
||||
/* mouse events */
|
||||
girara_mouse_event_add(gsession, 0, 0, sc_mouse_scroll, NORMAL, GIRARA_EVENT_SCROLL_UP, UP, NULL);
|
||||
girara_mouse_event_add(gsession, 0, 0, sc_mouse_scroll, FULLSCREEN, GIRARA_EVENT_SCROLL_UP, UP, NULL);
|
||||
|
|
|
@ -38,7 +38,7 @@ sc_abort(girara_session_t* session, girara_argument_t* UNUSED(argument),
|
|||
}
|
||||
|
||||
g_object_set(zathura_page_get_widget(zathura, page), "draw-links", FALSE, NULL);
|
||||
if (clear_search) {
|
||||
if (clear_search == true) {
|
||||
g_object_set(zathura_page_get_widget(zathura, page), "search-results", NULL, NULL);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue