[gnome-photos] main-window: Also switch back to overview on Alt+Left
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] main-window: Also switch back to overview on Alt+Left
- Date: Sun, 15 Jul 2012 20:14:53 +0000 (UTC)
commit 7b4c227407cd0833e447191b6cd34c9253725249
Author: Debarshi Ray <debarshir gnome org>
Date: Sun Jul 15 00:01:27 2012 +0200
main-window: Also switch back to overview on Alt+Left
This is consistent with other applications.
src/photos-main-window.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-main-window.c b/src/photos-main-window.c
index d94ead5..fcb2cf7 100644
--- a/src/photos-main-window.c
+++ b/src/photos-main-window.c
@@ -152,8 +152,10 @@ static gboolean
photos_main_window_handle_key_preview (PhotosMainWindow *self, GdkEventKey *event)
{
PhotosMainWindowPrivate *priv = self->priv;
+ GtkTextDirection direction;
gboolean fullscreen;
+ direction = gtk_widget_get_direction (GTK_WIDGET (self));
fullscreen = photos_mode_controller_get_fullscreen (priv->controller);
if (event->keyval == GDK_KEY_f)
@@ -163,6 +165,9 @@ photos_main_window_handle_key_preview (PhotosMainWindow *self, GdkEventKey *even
}
if ((fullscreen && event->keyval == GDK_KEY_Escape)
+ || ((event->state & GDK_MOD1_MASK) != 0
+ && ((direction == GTK_TEXT_DIR_LTR && event->keyval == GDK_KEY_Left)
+ || (direction == GTK_TEXT_DIR_RTL && event->keyval == GDK_KEY_Right)))
|| event->keyval == GDK_KEY_BackSpace
|| event->keyval == GDK_KEY_Back)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]