Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Delete & Backspace keys can't delete preceding existing text while Shift key is pressed #5259

Closed
dalcala opened this issue Sep 18, 2013 · 7 comments

Comments

@dalcala
Copy link

dalcala commented Sep 18, 2013

Description:
Delete & Backspace keys can't delete preceding existing text while Shift key is pressed

Repro using Brackets Sprint 30 on Win 7 64-bit and Mac 10.8.

Repro steps:

  1. Make a new file in Brackets.
  2. On line Jason sanjose/js test driver #1, type "test".
  3. Press Return.
  4. On line Fleshed out overall UI layout #2, type "test".
  5. Position the IP at the end of line Jason sanjose/js test driver #1.
  6. Type " FOO" (all caps, space in front, no quotes) by holding down the Shift key.
  7. While holding down the Shift key, press the Backspace key and try to delete all of the text in line Jason sanjose/js test driver #1.

Actual results:
You can delete " FOO", but Delete/Backspace gets stuck when it reaches the word "test".

Expected results:
Delete & Backspace don't get stuck. UTR in Sublime Text 2, TextMate, TextEdit.

Workaround:
Don't press the Shift key while deleting.

@RaymondLim
Copy link
Contributor

I can reproduce it in any CodeMirror demo page. @dalcala You can log an issue with CodeMirror since it has to be fixed there.

@peterflynn
Copy link
Member

Reviewed. Corrections to expected behavior:

  • Mac: Shift+Backspace & Shift+Delete just act the same as regular (unshifted) Backspace & Delete
  • Win: Shift+Backspace acts the same as regular Backspace
  • Win: Shift+Delete is an alias for Cut -- it should not do anything when there's no selection

The last bullet is the only case that's currently working correctly.

@njx
Copy link
Contributor

njx commented Sep 23, 2013

@dalcala - when you file the CM bug, could you add a link here and label this "tracking"? Thanks.

@xfoxawy
Copy link

xfoxawy commented Mar 17, 2014

in Sublime 2
go to Preferences Menu - > Key Binding - Deafault

Ctrl + F and search for keys aliases u want to edit

save it then ur good to go

@redmunds
Copy link
Contributor

This was unassigned, so marking "Needs Review".

@njx
Copy link
Contributor

njx commented Apr 1, 2014

Marking FBNC - to @RaymondLim to verify. It looks like this was fixed in CM, although it's unclear whether all the cases @peterflynn mentioned were handled the way we want on Mac and Win - could you double-check?

@RaymondLim
Copy link
Contributor

Confirmed fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants