5 Replies Latest reply on May 28, 2009 7:39 AM by OOMCREATIVE

    keyboard control on MAC for PDF

    OOMCREATIVE

      I've almost finished an air app that allows for the viewing of a series of PDF files in a slideslow format (flash/air). Everything works as expected on the PC version, however on the MAC when PDFs are viewed I lose all the keyboard controls native to PDF viewing, eg keyboard shortcuts to zoom, make full page etc. I have tried a range of options, and macs, to test this out and it is always the same result. Has anyone else had this problem?

        • 1. Re: keyboard control on MAC for PDF
          Michael Borbor Level 4

          Do the keyboard commands work in Adobe Acrobat in Macs?

          • 2. Re: keyboard control on MAC for PDF
            OOMCREATIVE Level 1

            Yes. for example command & + to zoom in, command & 0 for whole page view. How every none of these work when viewing the PDF through the air app. Everything look exactly the same, eg the toolbars etc are there, just no keyboard shortcuts.

            • 3. Re: keyboard control on MAC for PDF
              Michael Borbor Level 4

              Could be a focus issue, a known issue, a bug. It's worthy investigation.

              • 4. Re: keyboard control on MAC for PDF
                OOMCREATIVE Level 1

                Any ideas with this? I have try a very simple air app, here is the code that I used, and still get the same results. PC version retains PDF keyboard controls, and the mac version doesn't. Any clues on why this is happening?

                 


                package {
                    import flash.display.NativeWindow;
                    import flash.display.Sprite;
                    import flash.events.Event;
                    import flash.filesystem.File;
                    import flash.desktop.NativeApplication;
                    import flash.html.HTMLLoader;
                    import flash.net.URLRequest;
                   
                   
                    public class main extends Sprite {
                       
                        public var pdf:HTMLLoader;
                       
                        public function main() {
                           
                            var file:File = File.desktopDirectory.resolvePath("Examples.pdf");
                           
                            var request:URLRequest = new URLRequest(file.url);
                            pdf = new HTMLLoader();
                            pdf.height = 600;
                            pdf.width = 800;
                            pdf.load(request);
                            addChild(pdf);
                           
                            NativeApplication.nativeApplication.activate(pdf.stage.nativeWindow);
                           
                        }
                       
                    }
                }

                • 5. Re: keyboard control on MAC for PDF
                  OOMCREATIVE Level 1

                  Anyone got any clues on this one?