Skip to content
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

not working on some pages that have code input #194

Open
luisfrodriguezr opened this issue Aug 16, 2023 · 4 comments
Open

not working on some pages that have code input #194

luisfrodriguezr opened this issue Aug 16, 2023 · 4 comments

Comments

@luisfrodriguezr
Copy link

App doesn't work on pages that have markdown input or code cells like Jupyter Notebooks, for instance https://www.kaggle.com/

@godbout
Copy link
Owner

godbout commented Aug 16, 2023

yes, so that's web stuff. the Jupyter Notebook thing is unfortunately not accessible. like the text is built from a whole bunch of static texts, which looks nice and works for the web, but it's not done for that. so the AX doesn't work properly.

what you can do is add your browser in the Key Mapping Family. then rather than trying to read the text, kV will just use key mapping to try to do the Vim motions. it's less precise, but no choice with tools that send wrong AX data. here kV can't do the switch automatically because actually Jupyter Notebook advertises itself as text, but also uses static text rather than text inputs or text areas. so yeah, add the browser in the Key Mapping. but it'll affect the whole browser, hence every single page. what you could do also i use two different browsers, one for normal usage, one that you put in the Key Mapping family when you deal with that type of input.

@godbout
Copy link
Owner

godbout commented Aug 16, 2023

something a little related: #180
in the sense that rather than changing behavior by apps, your issue would require (to have a proper UX for the user) to differentiate by SITE. which would be of course crazy to do.

@luisfrodriguezr
Copy link
Author

luisfrodriguezr commented Aug 16, 2023

Yeah, adding my browser in the Key Mapping seems to be working; just that I can't see the highlighted VIM cursor in normal mode. Should I expect that? Or is it something to fix it?

@godbout
Copy link
Owner

godbout commented Aug 17, 2023

Yeah, adding my browser in the Key Mapping seems to be working; just that I can't see the highlighted VIM cursor in normal mode. Should I expect that? Or is it something to fix it?

yeah, that's normal. kV has several "modes". the best one (Accessibility Strategy) requires apps/inputs to implement the macOS Accessibility properly. because to be able to do proper text calculation and manipulation, you need a lot of info. if the app/input doesn't give info, or wrong one (like with Jupyter), then kV needs to use another mode: the Keyboard Strategy one. basically it tries to translate a Vim motion in macOS key combinations. but in that case you can't have a block cursor, because kV doesn't know anything about the text and can't calculate anything related to it. the Keyboard Strategy is more like a fallback. the best mode is definitely the Accessibility one.

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

No branches or pull requests

2 participants