mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 22:35:59 +01:00
Allow numbers for quickmarks
This commit is contained in:
parent
4e010616e8
commit
d423ff7305
1 changed files with 8 additions and 4 deletions
12
marks.c
12
marks.c
|
@ -71,8 +71,10 @@ cb_marks_view_key_press_event_add(GtkWidget* UNUSED(widget), GdkEventKey* event,
|
||||||
G_CALLBACK(girara_callback_view_key_press_event), session);
|
G_CALLBACK(girara_callback_view_key_press_event), session);
|
||||||
|
|
||||||
/* evaluate key */
|
/* evaluate key */
|
||||||
if (((event->keyval >= 0x41 && event->keyval <= 0x5A) || (event->keyval >=
|
if (((event->keyval >= '0' && event->keyval <= '9') ||
|
||||||
0x61 && event->keyval <= 0x7A)) == false) {
|
(event->keyval >= 'a' && event->keyval <= 'z') ||
|
||||||
|
(event->keyval >= 'A' && event->keyval <= 'Z')
|
||||||
|
) == false) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,8 +97,10 @@ bool cb_marks_view_key_press_event_evaluate(GtkWidget* UNUSED(widget), GdkEventK
|
||||||
G_CALLBACK(girara_callback_view_key_press_event), session);
|
G_CALLBACK(girara_callback_view_key_press_event), session);
|
||||||
|
|
||||||
/* evaluate key */
|
/* evaluate key */
|
||||||
if (((event->keyval >= 0x41 && event->keyval <= 0x5A) || (event->keyval >=
|
if (((event->keyval >= '0' && event->keyval <= '9') ||
|
||||||
0x61 && event->keyval <= 0x7A)) == false) {
|
(event->keyval >= 'a' && event->keyval <= 'z') ||
|
||||||
|
(event->keyval >= 'A' && event->keyval <= 'Z')
|
||||||
|
) == false) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue