[PATCH] - There is no easy way to select the file with focus
- From: "Nelson Benítez León" <nbenitezl gmail com>
- To: Nautilus <nautilus-list gnome org>
- Subject: [PATCH] - There is no easy way to select the file with focus
- Date: Fri, 27 Jun 2008 14:15:49 +0200
Hi, another keyboard nav patch :), please see the bug[1] for info about the patch...
[1]
http://bugzilla.gnome.org/show_bug.cgi?id=378202
Index: libnautilus-private/nautilus-icon-container.c
===================================================================
--- libnautilus-private/nautilus-icon-container.c (revisión: 14183)
+++ libnautilus-private/nautilus-icon-container.c (copia de trabajo)
@@ -3356,8 +3356,17 @@ keyboard_space (NautilusIconContainer *c
{
NautilusIcon *icon;
+ GList *selection;
+ gboolean has_selection;
+
+ has_selection = FALSE;
+ selection = nautilus_icon_container_get_selection (container);
+ if (selection) {
+ has_selection = TRUE;
+ g_list_free (selection);
+ }
/* Control-space toggles the selection state of the current icon. */
- if ((event->state & GDK_CONTROL_MASK) != 0) {
+ if (((event->state & GDK_CONTROL_MASK) != 0) || has_selection == FALSE) {
if (container->details->keyboard_focus != NULL) {
icon_toggle_selected (container, container->details->keyboard_focus);
g_signal_emit (container, signals[SELECTION_CHANGED], 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]