Changeset 26757

Show
Ignore:
Timestamp:
20.01.2013 15:19:25 (6 years ago)
Author:
davidb
Message:

Fixed bug with Audience Mode not working in GlamED. Need to check if the current frame displayed is a collection item frame. If not then just run Audience Mode as per normal, otherwise need to hide any visible overlays such as the toolbar and "view/hide toolbar" button.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/GlamED/trunk/src/org/honours/gui/KeyboardActions.java

    r26588 r26757  
    99import org.expeditee.gui.FrameKeyboardActions; 
    1010import org.honours.actions.MiscActions; 
     11import org.honours.collection.Collection; 
    1112 
    1213public class KeyboardActions implements KeyListener{ 
     
    2728         
    2829        int keyCode = e.getKeyCode(); 
    29         //Frame currFrame = DisplayIO.getCurrentFrame(); 
     30        Frame currFrame = DisplayIO.getCurrentFrame(); 
     31        Collection coll = Collection.findCollection(currFrame); 
    3032         
    31         //TODO:Check if current frame is a "content-layer" 
    32          
     33        if(coll != null){ 
    3334        //If F9 (Audience Mode button) has been pressed. 
    3435        if(keyCode == KeyEvent.VK_F9){ 
     
    5354        } 
    5455         
    55                  
     56        }        
    5657        FrameKeyboardActions.getInstance().keyPressed(e); 
    5758    }