• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Indent keybind

Status
Not open for further replies.

Chaosy

Tutorial Reviewer
Level 41
Joined
Jun 9, 2011
Messages
13,239
I have serious issues with this, I want a keybind to tab/intend a text.
Shift + tab = reverse

I know that tab is also used for site navigation, but I think it could be disabled if the user is typing perhaps?

For implementation I imagine it being done by checking if the (presumably) div element is being focused client side, apply keybind if so.
 
Level 7
Joined
Mar 10, 2013
Messages
366
I have serious issues with this, I want a keybind to tab/intend a text.
Shift + tab = reverse

I know that tab is also used for site navigation, but I think it could be disabled if the user is typing perhaps?

For implementation I imagine it being done by checking if the (presumably) div element is being focused client side, apply keybind if so.
You can control this behaviour if there's focus on a input or textarea. Though if you're using some modern wysiwyg it may be in the proper api (as CKEditor, for instance).
 
Level 7
Joined
Mar 10, 2013
Messages
366
Why would you use the tab symbol?
As far as I understand he's trying to use the tab do indent lines and shift+tab to deindent lines. But what happens is that when he tabs, it goes out of the box he's writing.
So he would like to indent lines with tab instead of changing focused objects.
 
Level 7
Joined
Mar 10, 2013
Messages
366
You could add a shortcut for indentation or deindentation like ALT + Q for indent and ALT + A to deindent (we already have the buttons).
 
Level 7
Joined
Mar 10, 2013
Messages
366
Well, if a shortcut to post is so ideal, it would be better to have it on some shortcut. Like Ctrl + Enter (since Alt +Enter is already used by the browser).

I do have to agree with the use of tab sometines sads me greatly.
 
Last edited:
Status
Not open for further replies.
Top