Offline

Would it be possible to implement keyboard shortcuts to BBcode tags?
I know another forum which has this and it's really convenient.
Example; Ctrl + i produces opening and closing italics tags and places the cursor in between. The same keyboard combo with text selected tags the selected text as italic.
Sounds cool?

Offline
A gray world of dread

Not possible, I think. Keyboard commands are going to your browser, and it will do whatever it thinks it's right they do. There's however the option of graphical buttons on the edit window that will do the same thing.

Edit: Might be possible if the editor was an application (Flash/Java) I guess

Last edited by µB (Jan 10, 2010 12:52 pm)

Offline

There is a simple javascript app that can do this. Plus, as I stated, there's another forum which has this feature.
The actual input text box doesn't need to be java for this to work.

I've used this myself once, and it worked great!

Offline
A gray world of dread

Oh, I didn't know JS could capture keyboard. Won't this interfere with browser shortcuts though?

Offline

I can't say for sure, but I think the JS overrides browser shortcuts.

Offline
New York City

Wordpress does this too.
What I think happens, is that it works in PC but not Macs. But I could be wrong.

Offline
Brisbane, Australia, Earth
akira^8GB wrote:

works in PC but not Macs.

story of my life!

Offline
ad-hell-aide

Blogger has this for text boxes when you make a blog post, and it works fine for Mac under Safari and Firefox.

Offline
Los Angeles

Yeah its fairly easy to implement. its a good idea.

Offline

Awesome!
Will you add this to the to do list?