Set the focus to a control, even a fake one that is hidden like this:

      --  Prevent backspace from causing browser to go to previous page
      Stop_B := new Common.DIV_Type;
      Stop_B.Create (Main_Window);
      Stop_B.Hidden;
      Stop_B.Editable;
      Stop_B.Focus;

David Botton


On Mon, Nov 23, 2015 at 4:29 AM <r...@thevastydeep.com> wrote:

> First of all, thanks for Gnoga - it's really impressive, and I've already
> written my first commercial application. But I have one small issue - when
> I press backspace in my applications, the applications receive the
> keystroke, but so does the browser. This causes the browser to go to the
> previous browser page, effectively exiting my application. The only way I
> have found to avoid this is to launch the application in a new browser
> window each time, so that there is no previous URL. But I need to be able
> to use any browser window - how can I ensure that backspace characters are
> received ONLY by the application, and are NOT passed to the browser?
>
> Thanks!
>
>
>
> ------------------------------------------------------------------------------
> Go from Idea to Many App Stores Faster with Intel(R) XDK
> Give your users amazing mobile app experiences with Intel(R) XDK.
> Use one codebase in this all-in-one HTML5 development environment.
> Design, debug & build mobile apps & 2D/3D high-impact games for multiple
> OSs.
> http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
> _______________________________________________
> Gnoga-list mailing list
> Gnoga-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gnoga-list
>
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list

Reply via email to