Results 1 to 3 of 3
  1.    #1  
    cant post link yet? but the following patch for enter line breaks at "link"
    hache te te pee :// Wx3 .webos-internals.org/wiki/Patch_Messaging_Change_%22Enter_Key%22_To_Create_Newline


    This broke my text service.
    Am I commenting out wrong by using
    /* comment */
    Either way I removed my comments and txt worked again, but patch doesn't

    sorry for my typing, I have a baby in one hand
  2. #2  
    I thought so to at first but you just commented out the wrong information. The only thing that needs to get commented out is the last two statements:

    Code:
    handleTextAreaKeyUp: function(event) {
    		if (event && Mojo.Char.isEnterKey(event.keyCode)) {
    			/*this.considerForSend();
    			Event.stop(event);*/
  3. DrewPre's Avatar
    Posts
    818 Posts
    Global Posts
    829 Global Posts
    #3  
    That's not what I have commented out and mine worx like a charm...

    I have the following...
    Code:
    	/* handleTextAreaKeyUp: function(event) {
    		if (event && Mojo.Char.isEnterKey(event.keyCode)) {
    			this.considerForSend();
    			Event.stop(event);
    		}		
    	}, */
    I'm having a different problem though.....

    Supposedly the following code is supposed to enable Jumping forward and backward a word at a time using Sym+F and Sym+G....
    Code:
    	handleTextAreaKeyUp: function(event) {
    		if (event && event.ctrlKey && event.keyCode==Mojo.Char.f) {
    			currentText=this.messageTextElement.value; 
    			oldPos = this.messageTextElement.selectionStart; 
    			newPos = currentText.lastIndexOf(' ',oldPos-1); 
    			if (newPos>-1) { 
    				this.messageTextElement.setSelectionRange(newPos,newPos); 
    			} else { 
    				this.messageTextElement.setSelectionRange(0,0); 
    			}
    			Event.stop(event); 
    		}
    
    		if (event && event.ctrlKey && event.keyCode==Mojo.Char.g ) { 
    			currentText=this.messageTextElement.value; 
    			oldPos = this.messageTextElement.selectionStart; 
    			newPos = currentText.indexOf(' ',oldPos); 
    			if (newPos>-1) { 
    				this.messageTextElement.setSelectionRange(newPos+1,newPos+1); 
    			} else { 
    				this.messageTextElement.setSelectionRange(currentText.length,currentText.length); 
    			}
    			Event.stop(event); 
    		}
    	},
    Does anyone see anything obviously wrong with this??? I tried to copy it directly from webos-internals.org but the formatting on that page seems messed up.

Tags for this Thread

Posting Permissions