Steve Ruiz ee1f3f0274
Fix focus manager when editing (#6125)
This PR fixes a bug that was causing the FocusManager to trigger focus
rings / focus mode when using normal keyboard shortcuts.

For example, you could trigger the sidebar menu icons by using the arrow
keys to nudge content, or by pressing Tab while editing a shape.

### Change type

- [x] `bugfix`
- [ ] `improvement`
- [ ] `feature`
- [ ] `api`
- [ ] `other`

### Test plan

1. Use the arrow keys inside of the canvas, focus mode should stay off
2. Use the tab key inside of an input, focus mode should stay off
3. Use the arrow keys outside of the canvas, focus mode should turn on
4. Use the tab key outside of an input, focus mode should turn on

### Release notes

- Fixed a bug with keyboard focus turning on accidentally
2025-05-23 18:18:08 +00:00
2025-05-16 07:16:56 +00:00
2025-05-16 07:16:56 +00:00
2024-09-18 11:17:57 +01:00
2025-04-01 11:26:45 +00:00
2025-01-30 10:53:54 +00:00
2025-04-03 15:07:49 +00:00
2025-05-22 13:39:40 +00:00
2024-09-23 09:02:20 +00:00
2023-04-25 12:01:25 +01:00
2025-03-10 15:38:58 +00:00
2025-05-22 13:39:40 +00:00
2024-10-24 11:16:31 +00:00
2025-05-21 14:24:53 +00:00
2025-01-06 13:41:39 +00:00
2025-05-08 17:28:19 +00:00
2025-01-30 10:53:54 +00:00

tldraw

Ask DeepWiki

Welcome to the public monorepo for tldraw. tldraw is a library for creating infinite canvas experiences in React. It's the software behind the digital whiteboard tldraw.com.

Click here to learn about our license and pricing.

Installation

npm i tldraw

Usage

import { Tldraw } from 'tldraw'
import 'tldraw/tldraw.css'

export default function App() {
	return (
		<div style={{ position: 'fixed', inset: 0 }}>
			<Tldraw />
		</div>
	)
}

Learn more at tldraw.dev.

Local development

The local development server will run our examples app. The basic example will show any changes you've made to the codebase.

To run the local development server, first clone this repo.

Enable corepack to make sure you have the right version of yarn:

npm i -g corepack

Install dependencies:

yarn

Start the local development server:

yarn dev

Open the example project at localhost:5420.

License

The tldraw SDK is provided under the tldraw license.

You can use the tldraw SDK in commercial or non-commercial projects so long as you preserve the "Made with tldraw" watermark on the canvas. To remove the watermark, you can purchase a business license. Visit tldraw.dev to learn more.

Trademarks

Copyright (c) 2024-present tldraw Inc. The tldraw name and logo are trademarks of tldraw. Please see our trademark guidelines for info on acceptable usage.

Distributions

You can find tldraw on npm here.

Contribution

Please see our contributing guide. Found a bug? Please submit an issue.

Community

Have questions, comments or feedback? Join our discord. For the latest news and release notes, visit tldraw.dev.

Contributors

Star History

Star History Chart

Contact

Find us on Twitter/X at @tldraw. You can contact us by email at hello@tldraw.com.

Description
A tiny little drawing app.
Readme 809 MiB
Languages
TypeScript 91.9%
MDX 4.5%
CSS 1.9%
JavaScript 1.5%
HTML 0.1%