Comments (2)
To resolve the issue where typing in a text input field triggers shortcuts, follow these steps:
-
Locate the
TextInput
component: This is likely where the focus handling should be adjusted. -
Modify the
TextInput
component to set the hotkey scope when the input field is focused. You can use theInputHotkeyScope
enum to manage this. -
Example Code:
import { InputHotkeyScope } from 'path/to/InputHotkeyScope';
class TextInput extends React.Component {
handleFocus = () => {
// Set the hotkey scope to deactivate shortcuts
InputHotkeyScope.setScope('textInput');
};
handleBlur = () => {
// Revert the hotkey scope to its previous state
InputHotkeyScope.revertScope();
};
render() {
return (
<input
type="text"
onFocus={this.handleFocus}
onBlur={this.handleBlur}
{...this.props}
/>
);
}
}
- Ensure
InputHotkeyScope
is properly implemented to manage the scope stack and deactivate shortcuts when the scope is set totextInput
.
This should prevent shortcuts from being triggered when typing in a text input field.
from twenty.
@lucasbordeau, the problem also occurs in muti-select
from twenty.
Related Issues (20)
- Improve "check disabled fields" page
- [BUG] twenty-front vite package causing error logs due to vite trying to serve blocknote fonts which is outside of allow list HOT 2
- Login Problem After Update to latest Version HOT 9
- Stuck on partially blank screen after upgrade from 22.0 to 23.0 HOT 4
- ServerlessFunctions Followup
- Add delete confirmation dialog for object detail view HOT 3
- Ability to indent bullet points in notes/tasks HOT 3
- Filter using "multi select" field HOT 2
- Moving a block in the RichTextEditor duplicates it HOT 1
- Editing a RICH_TEXT field should update the attachment table when new images are added.
- Ability to search in fields/objects list
- Webhook URL sanity check is too restrictive HOT 3
- Database becomes unreachable / nameresolution fails with docker-compose.yml
- Ability to mention someone or a something in notes / task etc
- Upgrade from 0.22.1 to 0.23.0 missing metadata for task
- Ability to upload image and files through the REST API
- As an API user, I shouldn't be able to update isCustom on an object or a field metadata HOT 3
- Conditionally hide a field or select value
- Move serverless function build to Lambda
- Missing field name tooltip HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twenty.