summaryrefslogtreecommitdiff
blob: 29586a8b753bb34ba55bf64aada5d3d147a5be8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- links-2.1pre18/view.c	2005-08-29 13:53:49.000000000 +0200
+++ links-2.1pre18.az/view.c	2005-08-29 13:57:07.000000000 +0200
@@ -2972,6 +2972,7 @@
 		return 0;
 	}
 
+#ifdef JS
 	if (!event_catchable(ev) || !fd->f_data || !fd->vs) goto dont_catch;
 	if (fd->vs->current_link >= 0 && fd->vs->current_link < fd->f_data->nlinks) {
 		struct link *l = &fd->f_data->links[fd->vs->current_link];
@@ -2993,6 +2994,7 @@
 		if (!(call_keyboard_event(fd, fd->f_data->js_event->keypress_code, ev))) return 1;
 	}
 	dont_catch:
+#endif
 
 	if (!F) r = frame_ev(ses, fd, ev);
 #ifdef G