[nautilus/639-folders-not-expanding-with-arrow-keys] list_view: Fix key events regression
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/639-folders-not-expanding-with-arrow-keys] list_view: Fix key events regression
- Date: Sun, 23 Sep 2018 09:28:44 +0000 (UTC)
commit c3b98692b2365886b9fe5fa4adf6a6112f5b3929
Author: António Fernandes <antoniojpfernandes gmail com>
Date: Sun Sep 23 09:28:35 2018 +0000
list_view: Fix key events regression
Since f692a93d, the left/right keys do not expand/collapse trees.
This is because we return earlier if a precondition is True.
To fix, just negate the precondition.
Fixes: https://gitlab.gnome.org/GNOME/nautilus/issues/639
src/nautilus-list-view.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 6b78eded4..f26d89a5b 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -911,7 +911,7 @@ key_press_callback (GtkWidget *widget,
{
g_return_val_if_reached (GDK_EVENT_PROPAGATE);
}
- if (gdk_event_get_state (event, &state))
+ if (!gdk_event_get_state (event, &state))
{
return GDK_EVENT_PROPAGATE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]