Ticket #7674: backward-kill-word.diff
File backward-kill-word.diff, 783 bytes (added by , 13 years ago) |
---|
-
src/kits/interface/TextView.cpp
3271 3271 void 3272 3272 BTextView::_HandleBackspace() 3273 3273 { 3274 int32 modifiers = 0; 3275 BMessage *message = Window()->CurrentMessage(); 3276 if (message != NULL) 3277 message->FindInt32("modifiers", &modifiers); 3278 3279 bool optDown = modifiers & B_OPTION_KEY; 3280 3274 3281 if (fUndo) { 3275 3282 TypingUndoBuffer *undoBuffer = dynamic_cast<TypingUndoBuffer*>( 3276 3283 fUndo); … … 3284 3291 if (fSelStart == fSelEnd) { 3285 3292 if (fSelStart == 0) 3286 3293 return; 3294 else if (optDown) 3295 fSelStart = _PreviousWordStart(fSelStart); 3287 3296 else 3288 3297 fSelStart = _PreviousInitialByte(fSelStart); 3289 3298 } else