Message Boards Message Boards

0
|
6665 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Bug with SelectionPlaceholder?

Posted 9 years ago

The code below adds a shortcut that creates absolute value bars with a placeholder in the middle. Feel free to try the code below. It will temporarily add the shortcut key until you end your front end session.

When I press the space bar after typing in the letters "sabs" the curser is suppose to move into and highlight the placeholder. This use to work perfectly in M9. It no longer works in M10. Now I have to press the left arrow key twice after I press the space bar to highlight the entire cell and then press the tab key to move to the placeholder. Three extra key presses that use to take zero.

Is this a bug? If not, is there something I can change to get the functionality back that I had in M9? Thank you!

SetOptions[$FrontEndSession,
 InputAutoReplacements -> {
   "sabs" -> 
    Cell[BoxData[
      FormBox[RowBox[{"\[LeftBracketingBar]", "\[Placeholder]", 
         "\[RightBracketingBar]"}], TraditionalForm]], 
     FormatType -> "TraditionalForm"]}]
POSTED BY: Michael McCain

I should clarify the shortcut continues to work in "input" cells in M10. It no longer works in "text" cells in M10. It use to work perfectly in M9. Any help? Is there a workaround? It's driving me crazy.

POSTED BY: Michael McCain
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract