mirror of
https://github.com/Noratrieb/slides.git
synced 2026-01-14 16:35:07 +01:00
add focus controller, manages keyboard focus across multiple embedded decks
This commit is contained in:
parent
57107ebe4c
commit
664beff715
6 changed files with 125 additions and 6 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue