aboutsummaryrefslogtreecommitdiff
path: root/src/dialog.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2013-01-28 12:59:33 -0300
committerJorge Arellano Cid <jcid@dillo.org>2013-01-28 12:59:33 -0300
commit55671b27e77fe4e95f6ba4e643764c6686e5ce9a (patch)
tree53487989ee8d97e1c95dc6f2f3de893b961c4239 /src/dialog.cc
parent90090d77dac8387ea576e67c9f9f5ae0a0215fcd (diff)
Fix: dialog menu is keyboard-activable again (119c5d6ba0df regression)
The search engine option menu was activable with keyborad (Down key). Made this work again. Also made FORM option menus activable with Down key.
Diffstat (limited to 'src/dialog.cc')
-rw-r--r--src/dialog.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dialog.cc b/src/dialog.cc
index 484eebc4..92b99041 100644
--- a/src/dialog.cc
+++ b/src/dialog.cc
@@ -82,9 +82,9 @@ int CustInput3::handle(int e)
/*
* Used to make the ENTER key activate the CustChoice
*/
-class CustChoice : public Fl_Choice {
+class CustChoice2 : public Fl_Choice {
public:
- CustChoice (int x, int y, int w, int h, const char* l=0) :
+ CustChoice2 (int x, int y, int w, int h, const char* l=0) :
Fl_Choice(x,y,w,h,l) {};
int handle(int e) {
if (e == FL_KEYBOARD &&
@@ -178,7 +178,7 @@ const char *a_Dialog_input(const char *title, const char *msg)
c_inp->labelsize(14);
c_inp->textsize(14);
- CustChoice *ch = new CustChoice(1*gap,ih+3*gap,180,24);
+ CustChoice2 *ch = new CustChoice2(1*gap,ih+3*gap,180,24);
if (!pm) {
int n_it = dList_length(prefs.search_urls);
pm = new Fl_Menu_Item[n_it+1];