-
Notifications
You must be signed in to change notification settings - Fork 848
fix navigation conflict with SelectRange and Edit #4516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
fix navigation conflict with SelectRange and Edit #4516
Conversation
Hey @azmy60 Thanks for the PR. Got a few questions for you here. First off, do you think you could manage this via confirm events, rather than direct module interaction, as when i merged in the spreadsheet module to start with, the idea is to decouple the modules rather than have them directly manipulate eachother. (for example other modules in future may also want to control this behaviour, so a general event is more useful. Second, several of the editors control this behaviour directly. for example the Cheers Oli :) |
Hey @azmy60 Just wondering what your thoughts were on this one? Cheers Oli :) |
Thanks for the feedback! I didn't know the |
@olifolkerd Sorry for getting back to this for a while. I tried using the confirm events and it ran an endless loop because both SelectRange and Edit module subscribe to "navigation-key-*" events which were dispatched by the keybinding module. Using |
@olifolkerd I just updated the code to not interact with the If you would prefer a similar approach to |
@olifolkerd I managed to use the |
Using Up/Down Arrow keys while editing a cell can move the editor focus which is an uncommon behavior (comparing to Google Sheets and Ms. Excel). And it looks like we have 2 modules that can control table navigation =>
SelectRange
module andEdit
module. I think it's best if we can let only one module to control navigation.Tabulator
Expected: Pressing arrow keys while editing should move the cursor inside the editor instead of continuing to navigate the table.
Google Sheets