Viewing 1 post (of 1 total)
  • Author
    Posts
  • #17444

    sirfoobar
    Participant

    Hello,
    Thank you for a wonderful product.

    I think it would be terrific if there were an option to have Ctrl+Backspace and Ctrl+Delete work like other Windows programs. In most other Windows programs:
    Ctrl+Backspace works the same as: Ctrl+Shift+Left, Backspace.
    Ctrl+Delete works the same as: Ctrl+Shift+Right, Delete.

    I have coded macros to emulate this behavior but I bet this is something that others would like as a built-in option. I missed it for a long time.

    //delete_left_word.jsee

    // Behavior like ctrl+backspace in most Windows editors
    
    // If there is selected text, then delete the selection only. 
    // Otherwise delete like: shift+ctrl+left, backspace.
    
    if (document.selection.Text.length > 0) {
    	document.selection.Delete();
    } else {
    	document.selection.WordLeft( true );
    	document.selection.Delete();
    }

    //delete_right_word.jsee

    // Behavior like ctrl+delete in most Windows editors
    
    // If there is selected text, then delete the selection only. 
    // Otherwise delete like: shift+ctrl+right, delete.
    
    if (document.selection.Text.length > 0) {
    	document.selection.Delete();
    } else {
    	document.selection.WordRight( true );
    	document.selection.Delete();
    }

    All the best, Garth

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Share with friends... Tweet about this on TwitterShare on FacebookShare on Google+Email this to someone