Skip to content

Wed Feb 02 2005

I recently added Tabbing functionality for indenting/outdenting (hey, it's a trident term 😃 in my dogfood version of PostXING.

Quoting has just become 100 times easier for me.

I prefer to use the keyboard when posting/changing text attributes when possible, and this whole no tabbing business finally got me a little fed up. Wanna know the funny part? It ended up being about 8 lines of code, give or take for whitespace:

  1 protected override bool ProcessCmdKey(ref Message msg, Keys keyData) {
  2 	if(keyData == Keys.Tab){
  3 		this._designEditor.TextFormatting.Indent();
  4 	}else if(keyData == (Keys.Tab | Keys.Shift)){
  5 		this._designEditor.TextFormatting.Unindent();
  6 	}
  7 			
  8 	return base.ProcessCmdKey (ref msg, keyData);
  9 }

What other unsupported keyboard shortcuts would you like to see in PostXING (get em while I've got it fresh on my mind 😃

[ Currently Playing : Dazed And Confused - Led Zeppelin - BBC Sessions CD 2 (18:36) ]

💾 May the source be with you. v3.2.1118