Skip to content

feat(web): added shortcuts#603

Merged
pkaramon merged 4 commits into
mainfrom
@pkaramon/feat-web-shortcuts
May 15, 2026
Merged

feat(web): added shortcuts#603
pkaramon merged 4 commits into
mainfrom
@pkaramon/feat-web-shortcuts

Conversation

@pkaramon
Copy link
Copy Markdown
Collaborator

Summary

  • added shortcuts for styles
  • shortcuts are inspired by Slack for bold, italic etc. and by google docs when it comes to headings, lists
  • I've verified on my Windows laptop that on it shortcuts also work
  • WEB.md contains a detailed list of all shortcuts

Test Plan

  • Run yarn test:e2e:web to verify new e2e tests pass
  • Run yarn example-web dev and play around with shortcuts

Screenshots / Videos

N/A

Compatibility

OS Implemented
iOS
Android
Web

Checklist

  • E2E tests are passing
  • Required E2E tests have been added (if applicable)

pkaramon added a commit that referenced this pull request May 14, 2026
- Add experimental web platform note; EnrichedText is iOS/Android only for now
- Replace all "Both" platform cells with explicit iOS/Android/Web labels
- cursorColor: Android, Web only (iOS uses selectionColor for cursor color)
- useHtmlNormalizer: iOS, Android only — ignored on web
- contextMenuItems: iOS, Android only — not available on web
- linkRegex: update default value label to "platform default regex"
- onPasteImages: add web note about blob URLs and URL.revokeObjectURL()
- Add onSubmitEditing, returnKeyLabel, returnKeyType, submitBehavior props
- returnKeyLabel: iOS/Android only — browsers don't allow customizing return key label
- returnKeyType: web supports only enterkeyhint-compatible values
- Add Keyboard Shortcuts (Web only) section with full shortcut table

Assumes PRs #600 (submit props), #598 (automatic links),
#584 (image paste), #603 (shortcuts) will be merged.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@exploIF exploIF left a comment

Choose a reason for hiding this comment

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

Works super good 🚀

Comment thread src/web/EnrichedTextInput.tsx Outdated
@pkaramon pkaramon merged commit 2f20578 into main May 15, 2026
7 checks passed
@pkaramon pkaramon deleted the @pkaramon/feat-web-shortcuts branch May 15, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants