Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Keyboard shortcuts: ctrl+T, ctrl+L, ctrl+R stolen by editor #210
When setting up keyboard shortcuts in a web app, there's always a delicate balance between providing features and interfering with the hosting browser's own keyboard shortcuts.
In a couple days of usage embedding Ace into MediaWiki, I've found that the most problematic key conflicts for me are:
ctrl+T -- normally does 'new tab'; in Ace this appears to swap two adjacent characters. Not a feature I'd expect to want, and it impedes ability to pop off to a new tab to look up documentation etc.
ctrl+R -- normally 'reload page': starts a text search in Ace. (I expected ctrl+F for that? ah... ctrl+R starts 'Find/Replace' but doesn't mention the replacement until you've gone through the first dialog :)
ctrl+L -- normally 'go to location', popping into the URL bar so you can type a new URL to go to. Opens 'go to line' dialog in Ace.
Ctrl+T is an issue here as well - probably a way to disable that. Ctrl+R reloads for me.
IMO, the web browser should allow all keyboard shortcuts to be overridden but then offer the user a selection in a popup as to which action the user actually wants to execute. Could be annoying but that dialog could offer a couple quick shortcuts as well: 0 = Web Browser default action, 1 = Application action #1, 2 = Application action #2....