Welcome to Pintexx Forum Sign in | Join | Faq

pinEdit

Started by Pintexx Support at 09-26-2005 4:46 . Topic has 0 replies.

Print Search
Sort Posts:    
   09-26-2005, 4:46
Pintexx Support is not online. Last active: 30.12.2008 07:11:54 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.576
Entering   instead of space

If you need to enter   instead of standard space please edit config/config_event.js and add this code

function eventOnKeyDown(e)
{

 // to cancel KeyDown return true
 //return true;
  var evt = getWindow().event;

 if (evt.keyCode == 32) {
  var sel = getDoc().selection;
  if (sel.type == "Control")
   return true;
  var r = sel.createRange();
  r.pasteHTML(" ");
  evt.cancelBubble = true;
  evt.returnValue = false;

  r.select();
  r.moveEnd("character", 1);
  r.moveStart("character", 1);
  r.collapse(false);

  return true;
  }
}

 


   Report 
Pintexx Forum » Knowledge Base » pinEdit » Entering   instead of space