Changeset 26757


Ignore:
Timestamp:
2013-01-20T15:19:25+13:00 (9 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.

File:
1 edited

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    }
Note: See TracChangeset for help on using the changeset viewer.