Changeset 1461


Ignore:
Timestamp:
12/09/11 20:52:48 (18 months ago)
Author:
philmoz
Message:

Fix for problem when using the file selector from a script. If the shutter button is pressed when the file selector is open the script is cancelled; but leaves CHDK in a strange state where <ALT> mode buttons do not work correctly.
This change blocks the shutter button press from starting/stopping a script if the file selector is open.
http://chdk.setepontos.com/index.php?topic=7227.msg77603#msg77603

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/kbd.c

    r1457 r1461  
    264264/*-------------------- Alex scriptless remote additions end ---------------------*/ 
    265265#ifdef OPT_SCRIPTING 
    266         if (kbd_is_key_pressed(KEY_SHOOT_FULL)) { 
     266                // Start or stop a script if the shutter button pressed 
     267                // Note: this is blocked if CHDK is in the file selector. prevents problems 
     268                //       when the file selector is called from a script. 
     269        if (kbd_is_key_pressed(KEY_SHOOT_FULL) && (gui_get_mode() != GUI_MODE_FSELECT)) { 
    267270            key_pressed = 100; 
    268271            if (!state_kbd_script_run) { 
Note: See TracChangeset for help on using the changeset viewer.