mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-10-29 04:40:02 +01:00
add focus controller, manages keyboard focus across multiple embedded decks
This commit is contained in:
@@ -151,6 +151,12 @@ export default class Keyboard {
|
||||
return true;
|
||||
}
|
||||
|
||||
// If keyboardCondition is set, only capture keyboard events
|
||||
// for embedded decks when they are focused
|
||||
if( config.keyboardCondition === 'focused' && !this.Reveal.isFocused() ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Shorthand
|
||||
let keyCode = event.keyCode;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user