| Summary: | [client] Some keybindings block defaults in Firefox | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mihai Sucan <mihai.sucan> |
| Component: | Client | Assignee: | Project Inbox <e4.orion-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | eclipse.felipe, mihai.sucan, Silenio_Quarti, simon_kaegi, susan |
| Version: | 0.2 | ||
| Target Milestone: | 0.2 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| URL: | https://github.com/eclipse/orion.client/pull/3 | ||
| Whiteboard: | |||
|
Description
Mihai Sucan
Add this lines to your code:
view.setKeyBinding(new mKeyBinding.KeyBinding('b', true), "dontdoit");
view.setKeyBinding(new mKeyBinding.KeyBinding('i', true), "dontdoit");
view.setKeyBinding(new mKeyBinding.KeyBinding('u', true), "dontdoit");
view.setAction("dontdoit", function() {
return false;
});
Do that and textview will let the user agent see the key.
Note that the real problem here is that textview+editor are taking several shortcuts from the user agent, at some point we need a better design to avoid conflicts between the editor and user agent shortcuts (or ui to allow the user to resolve this conflicts?) As agreed, I am submitting a minimal patch which fixes the issue with the three keyboard shortcuts in Firefox. Github pull request: https://github.com/eclipse/orion.client/pull/3 Thank you! (In reply to comment #2) > Note that the real problem here is that textview+editor are taking several > shortcuts from the user agent, at some point we need a better design to avoid > conflicts between the editor and user agent shortcuts (or ui to allow the user > to resolve this conflicts?) The wider problem is indeed something that will have to be fixed differently. We currently only use the Orion TextView, not the whole editor component (until the dojo deps removal), so the minor TextView fix is sufficient for now. For the editor component I would suggest that integrators are given the choice to use predefined keyboard shortcuts ... or not at all, to allow us to define our keybindings as we need. simon, can you +1 this change ? Just for completeness, here's usual statement: I confirm that I wrote all this code and have the rights to contribute it to Eclipse under the eclipse.org web site terms of use. |