Index: /trunk/core/kbd.c
===================================================================
--- /trunk/core/kbd.c	(revision 1460)
+++ /trunk/core/kbd.c	(revision 1461)
@@ -264,5 +264,8 @@
 /*-------------------- Alex scriptless remote additions end ---------------------*/
 #ifdef OPT_SCRIPTING
-        if (kbd_is_key_pressed(KEY_SHOOT_FULL)) {
+		// Start or stop a script if the shutter button pressed
+		// Note: this is blocked if CHDK is in the file selector. prevents problems
+		//       when the file selector is called from a script.
+        if (kbd_is_key_pressed(KEY_SHOOT_FULL) && (gui_get_mode() != GUI_MODE_FSELECT)) {
             key_pressed = 100;
             if (!state_kbd_script_run) {
