This commit is contained in:
Jamie Kyle 2023-04-20 10:03:43 -07:00 committed by GitHub
parent 1f2cde6d04
commit 0e490542a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
196 changed files with 2117 additions and 1217 deletions

View file

@ -45,6 +45,7 @@ import { Emojify } from './conversation/Emojify';
import { AddNewLines } from './conversation/AddNewLines';
import { useConfirmDiscard } from '../hooks/useConfirmDiscard';
import { Spinner } from './Spinner';
import { arrow } from '../util/keyboard';
export type MediaEditorResultType = Readonly<{
data: Uint8Array;
@ -276,7 +277,7 @@ export function MediaEditor({
},
],
[
ev => ev.key === 'ArrowLeft',
ev => ev.key === arrow('start'),
(obj, ev) => {
const px = ev.shiftKey ? 20 : 1;
if (ev.altKey) {
@ -312,7 +313,7 @@ export function MediaEditor({
},
],
[
ev => ev.key === 'ArrowRight',
ev => ev.key === arrow('end'),
(obj, ev) => {
const px = ev.shiftKey ? 20 : 1;
if (ev.altKey) {