]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Enhance keyboard util. 8571/head
authorMarius Olbertz <marius.olbertz@gmail.com>
Mon, 11 Apr 2016 14:27:41 +0000 (16:27 +0200)
committerMarius Olbertz <marius.olbertz@gmail.com>
Mon, 11 Apr 2016 14:27:41 +0000 (16:27 +0200)
commit878f8ac6e5b2f59e55169e290241640968df1602
treea0f90ccd12645db51ffb1ec0c67ccb7092c0c323
parent7a6ed604689635ddda430ae46a100d30c415959b
Enhance keyboard util.

Enhanced keyboard util by adding a parameter that is passed to the `handled` function based on the evaluation of the function that was handled.
It is now easier to only do certain actions (e.g. calling `preventDefaul()`) in the `handled` handler by letting the other function (e.g. `next`, `up`, ...) return some value, which is directly passed into `handled` as the first parameter.
I also adjusted the calls to the keyboard util for some plugins to fix issues and prevent bad behavior.
js/foundation.accordionMenu.js
js/foundation.drilldown.js
js/foundation.reveal.js
js/foundation.tabs.js
js/foundation.util.keyboard.js