Skip to content

Commit

Permalink
fix(typo): Correct typo in __experimental_disablePlayPauseKeyboardSho…
Browse files Browse the repository at this point in the history
…rtcut method name
  • Loading branch information
donmccurdy authored and AriaMinaei committed Oct 9, 2023
1 parent b7408dd commit 3a426fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions theatre/studio/src/TheatreStudio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {debounce, uniq} from 'lodash-es'
import type Sheet from '@theatre/core/sheets/Sheet'
import type {ProjectId} from '@theatre/sync-server/state/types/core'
import {
__experimental_disblePlayPauseKeyboardShortcut,
__experimental_disablePlayPauseKeyboardShortcut,
__experimental_enablePlayPauseKeyboardShortcut,
} from './UIRoot/useKeyboardShortcuts'
import type TheatreSheetObject from '@theatre/core/sheetObjects/TheatreSheetObject'
Expand Down Expand Up @@ -454,7 +454,7 @@ export interface IStudio {
* Disables the play/pause keyboard shortcut (spacebar)
* Also see `__experimental_enablePlayPauseKeyboardShortcut()` to re-enable it.
*/
__experimental_disblePlayPauseKeyboardShortcut(): void
__experimental_disablePlayPauseKeyboardShortcut(): void
/**
* Warning: This is an experimental API and will change in the future.
*
Expand Down Expand Up @@ -506,16 +506,16 @@ export default class TheatreStudio implements IStudio {
private readonly _cache = new SimpleCache()

__experimental = {
__experimental_disblePlayPauseKeyboardShortcut(): void {
__experimental_disablePlayPauseKeyboardShortcut(): void {
// This is an experimental API to respond to this issue: https://discord.com/channels/870988717190426644/870988717190426647/1067906775602430062
// Ideally we need a coherent way for the user to control keyboard inputs, so we will remove this method in the future.
// Here is the procedure for removing it:
// 1. Replace this code with a `throw new Error("This is experimental method is now deprecated, and here is how to migrate: ...")`
// 2. Then keep it for a few months, and then remove it.
__experimental_disblePlayPauseKeyboardShortcut()
__experimental_disablePlayPauseKeyboardShortcut()
},
__experimental_enablePlayPauseKeyboardShortcut(): void {
// see __experimental_disblePlayPauseKeyboardShortcut()
// see __experimental_disablePlayPauseKeyboardShortcut()
__experimental_enablePlayPauseKeyboardShortcut()
},
__experimental_clearPersistentStorage(persistenceKey?: string): void {
Expand Down
2 changes: 1 addition & 1 deletion theatre/studio/src/UIRoot/useKeyboardShortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type Sequence from '@theatre/core/sequences/Sequence'
import memoizeFn from '@theatre/utils/memoizeFn'

let playPauseKeyboardShortcutIsEnabled = true
export function __experimental_disblePlayPauseKeyboardShortcut() {
export function __experimental_disablePlayPauseKeyboardShortcut() {
playPauseKeyboardShortcutIsEnabled = false
}

Expand Down

1 comment on commit 3a426fd

@vercel
Copy link

@vercel vercel bot commented on 3a426fd Oct 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.