weimingtom / jsyntaxpane

Automatically exported from code.google.com/p/jsyntaxpane
1 stars 0 forks source link

remove autobracket on backspace #98

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. set content type="test/java"
2. type '(' in editor, 2 brackets will appear: '()', with cursor between 
them.
3. press backspace

What is the expected output? What do you see instead?
I expect both brackets to be removed, both typed and autogenerated. 
Instead  only typed bracket is being removed.

What version of the product are you using? On what operating system?
Ubuntu 9.04, jsyntaxpane-0.9.5-b27

Same thing goes with '"', '[', etc...

Original issue reported on code.google.com by Penkov.V...@gmail.com on 19 May 2009 at 8:28

GoogleCodeExporter commented 9 years ago
This is a known issue, but working around this will probably be too much at 
this stage.
I think to fix this, the document needs to be in a certain "state" to know that 
the
next backspace should remove the last two, or possibly more, characters.  A bit 
too
much for me right now.

Original comment by ayman.al...@gmail.com on 24 May 2009 at 1:19