                 case Keyboard.PAGE_UP:
                      if (!verticalScrollBar || !(verticalScrollBar.visible)) 
                      {
-                         hspDelta = (layoutDirection == "ltr") ?
+                         hspDelta = (LayoutDirection.LTR) ?
                              vp.getHorizontalScrollPositionDelta(NavigationUnit.LEFT) :
                              vp.getHorizontalScrollPositionDelta(NavigationUnit.RIGHT);
                      }

            switch (event.keyCode)
            {
                case Keyboard.LEFT:
                    hspDelta = (layoutDirection == "ltr") ?
                        vp.getHorizontalScrollPositionDelta(NavigationUnit.LEFT) :
                        vp.getHorizontalScrollPositionDelta(NavigationUnit.RIGHT);
                    break;
                case Keyboard.RIGHT:
                    hspDelta = (layoutDirection == "ltr") ?
                        vp.getHorizontalScrollPositionDelta(NavigationUnit.RIGHT) :
                        vp.getHorizontalScrollPositionDelta(NavigationUnit.LEFT);
                    break;

import spark.core.NavigationUnit;
import mx.core.IVisualElement;
import mx.core.IVisualElementContainer;
import mx.core.LayoutDirection;
import mx.core.ScrollPolicy;
import mx.events.PropertyChangeEvent;
import mx.managers.IFocusManagerComponent;
