mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 283423 keyboard navigation fails in component selection dialog
patch by ajschult@verizon.net r=bryner sr=bz
This commit is contained in:
parent
8e521d1654
commit
48fb659f9e
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user