mirror of
https://github.com/codex-team/editor.js
synced 2026-03-18 00:19:53 +01:00
Fix opening block tunes via keyboard
This commit is contained in:
parent
2c07cf8dcd
commit
d854ade903
2 changed files with 15 additions and 5 deletions
|
|
@ -6,6 +6,7 @@ import Block from '../../block';
|
|||
import Popover, { PopoverEvent } from '../../utils/popover';
|
||||
import I18n from '../../i18n';
|
||||
import { I18nInternalNS } from '../../i18n/namespace-internal';
|
||||
import Flipper from '../../flipper';
|
||||
|
||||
/**
|
||||
* HTML Elements that used for BlockSettings
|
||||
|
|
@ -47,6 +48,15 @@ export default class BlockSettings extends Module<BlockSettingsNodes> {
|
|||
*/
|
||||
public opened = false;
|
||||
|
||||
/**
|
||||
* Getter for inner popover's flipper instance
|
||||
*
|
||||
* @todo remove once BlockSettings becomes standalone non-module class
|
||||
*/
|
||||
public get flipper(): Flipper {
|
||||
return this.popover?.flipper;
|
||||
}
|
||||
|
||||
/**
|
||||
* Page selection utils
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -21,6 +21,11 @@ export enum PopoverEvent {
|
|||
* Popover is the UI element for displaying vertical lists
|
||||
*/
|
||||
export default class Popover extends EventsDispatcher<PopoverEvent> {
|
||||
/**
|
||||
* Flipper - module for keyboard iteration between elements
|
||||
*/
|
||||
public flipper: Flipper;
|
||||
|
||||
/**
|
||||
* Items list to be displayed
|
||||
*/
|
||||
|
|
@ -68,11 +73,6 @@ export default class Popover extends EventsDispatcher<PopoverEvent> {
|
|||
*/
|
||||
private listeners: Listeners;
|
||||
|
||||
/**
|
||||
* Flipper - module for keyboard iteration between elements
|
||||
*/
|
||||
private flipper: Flipper;
|
||||
|
||||
/**
|
||||
* Pass true to enable local search field
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue