Bug 283423 keyboard navigation fails in component selection dialog

patch by ajschult@verizon.net r=bryner sr=bz
This commit is contained in:
timeless%mozdev.org 2005-03-29 03:06:02 +00:00
parent 8e521d1654
commit 48fb659f9e
4 changed files with 8 additions and 4 deletions

View File

@ -353,7 +353,7 @@ nsComponentsDlg::RowSelected(GtkWidget *aWidget, gint aRow, gint aColumn,
(aColumn == 0 && aEvent->button == 1));
}
void
gboolean
nsComponentsDlg::KeyPressed(GtkWidget *aWidget, GdkEventKey *aEvent,
gpointer aData)
{
@ -361,6 +361,8 @@ nsComponentsDlg::KeyPressed(GtkWidget *aWidget, GdkEventKey *aEvent,
if (aEvent->keyval == GDK_space)
ToggleRowSelection(aWidget, sCurrRowSelected, TRUE);
return FALSE;
}
void

View File

@ -65,7 +65,7 @@ public:
static void RowSelected(GtkWidget *aWidget, gint aRow, gint aColumn,
GdkEventButton *aEvent, gpointer aData);
static void KeyPressed(GtkWidget *aWidget, GdkEventKey *aEvent,
static gboolean KeyPressed(GtkWidget *aWidget, GdkEventKey *aEvent,
gpointer aData);
static void ToggleRowSelection(GtkWidget *aEvent, gint aRow,
gboolean aToggleState);

View File

@ -492,7 +492,7 @@ nsComponentsDlg::RowSelected(GtkWidget *aWidget, gint aRow, gint aColumn,
ToggleRowSelection(aWidget, aRow, aColumn);
}
void
gboolean
nsComponentsDlg::KeyPressed(GtkWidget *aWidget, GdkEventKey *aEvent,
gpointer aData)
{
@ -500,6 +500,8 @@ nsComponentsDlg::KeyPressed(GtkWidget *aWidget, GdkEventKey *aEvent,
if (aEvent->keyval == GDK_space)
ToggleRowSelection(aWidget, sCurrRowSelected, 0);
return FALSE;
}
void

View File

@ -65,7 +65,7 @@ public:
static void RowSelected(GtkWidget *aWidget, gint aRow, gint aColumn,
GdkEventButton *aEvent, gpointer aData);
static void KeyPressed(GtkWidget *aWidget, GdkEventKey *aEvent,
static gboolean KeyPressed(GtkWidget *aWidget, GdkEventKey *aEvent,
gpointer aData);
static void ToggleRowSelection(GtkWidget *aEvent, gint aRow,
gint aColumn);