New web control collection

In the spirit of iOSDesignExtensions and AndroidDesignExtensions, I’m starting a new XojoWebExtensions Github repo for free extensions & controls for the Web 2.0 framework.

The first control in this collection is called KeyInterceptor and is designed to allow you to catch more than just CMD/CTRL keys that the user might press. With this class, you can capture a lot of different key combinations with modifiers like:

  • CMD/CTRL (the Meta key)
  • SHIFT
  • ALT/OPTION
  • CTRL (different than meta on macOS)

As well as plain old keys like F5, Escape, Enter and TAB (understanding that some of these keys are used by the web framework itself and may cause a conflict).

At the moment, the code is written so that it intercepts the key, preventing the browser from handling it (where possible), but some browsers don’t allow that for every key. For instance, Safari doesn’t allow intercepting CMD-R (refresh) on macOS whereas it works perfectly fine on Firefox.

18 Likes

Very very nice Greg! Appreciate your continued contributions to this community!

Tim

1 Like

Today’s I added a bootstrap Sidebar control following the style in the bootstrap docs:

This control is dark mode aware and can automatically change from light to dark with the rest of your pages.

This update also comes with a new change in how my free controls are constructed. The javascript class is now a constant that you can change to match your own projects if you want!

13 Likes

Nice Greg!!

Appreciate your contributions

TIm

This is fantastic, @Greg_O! Thank you so much.

Anthony