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

Keyboard shortcuts: ctrl+T, ctrl+L, ctrl+R stolen by editor #210

Closed
brion opened this Issue Apr 13, 2011 · 5 comments

Comments

Projects
None yet
6 participants
@brion
Copy link

commented Apr 13, 2011

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.

@gissues:{"order":79.5031055900622,"status":"backlog"}

@iebuggy

This comment has been minimized.

Copy link
Contributor

commented May 7, 2011

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....

@exupero

This comment has been minimized.

Copy link

commented Jan 16, 2012

+1

@benatkin

This comment has been minimized.

Copy link

commented Apr 22, 2012

I added an issue about Ctrl-L that got closed. This one's still open!

@nightwing

This comment has been minimized.

Copy link
Member

commented Aug 8, 2012

duplicate of #36

@LianaHus

This comment has been minimized.

Copy link

commented Apr 9, 2019

editor.commands.bindKeys({
  'Ctrl-T': null,
  'Command-T', null
  'ctrl-L': null,
  'Command-L': null
})

will remove mapping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.