This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 258745 - Multicaret: Shift-Tab does not work
Summary: Multicaret: Shift-Tab does not work
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Actions/Menu/Toolbar (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-09 12:14 UTC by markiewb
Modified: 2016-04-14 08:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Shows the SHIFT-TAB issue (221.10 KB, image/gif)
2016-04-13 20:25 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2016-04-09 12:14:30 UTC
Reproduction:
* Place several carets
* Press TAB
* Press SHIFT-TAB

ACTUAL: the tabs from the second step are not removed
EXPECTED: the tabs from the second step are removed


Product Version: NetBeans IDE Dev (Build 201603200001)
Updates: Updates available
Java: 1.8.0_71; Java HotSpot(TM) 64-Bit Server VM 25.71-b15
Runtime: Java(TM) SE Runtime Environment 1.8.0_71-b15
Comment 1 Ralph Ruijs 2016-04-11 10:44:54 UTC
changeset:   87f5be37bf9e
user:        Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date:        Mon Apr 11 12:43:57 2016 +0200
summary:     #258745 update ShiftTabAction to work with multiple carets
Comment 2 Quality Engineering 2016-04-12 01:47:17 UTC
Integrated into 'main-silver', will be available in build *201604120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/87f5be37bf9e
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #258745 update ShiftTabAction to work with multiple carets
Comment 3 markiewb 2016-04-12 22:59:32 UTC
(In reply to Quality Engineering from comment #2)
> Integrated into 'main-silver', will be available in build *201604120001* on
> http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
> 
> Changeset: http://hg.netbeans.org/main-silver/rev/87f5be37bf9e
> User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
> Log: #258745 update ShiftTabAction to work with multiple carets

Fix does not work for me.

Product Version: NetBeans IDE Dev (Build 201604120001)
Comment 4 Ralph Ruijs 2016-04-13 18:04:22 UTC
(In reply to markiewb from comment #3)
> (In reply to Quality Engineering from comment #2)
> > Integrated into 'main-silver', will be available in build *201604120001* on
> > http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
> > 
> > Changeset: http://hg.netbeans.org/main-silver/rev/87f5be37bf9e
> > User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
> > Log: #258745 update ShiftTabAction to work with multiple carets
> 
> Fix does not work for me.
> 
> Product Version: NetBeans IDE Dev (Build 201604120001)

Which filetype are you working with? Could you retry the fix in a later build? As it still works for me, could you attach a screencast?

Thanks!
Comment 5 markiewb 2016-04-13 20:25:42 UTC
Created attachment 159256 [details]
Shows the SHIFT-TAB issue

@Ralph: The issue still valid in Product Version: NetBeans IDE Dev (Build 201604130001)

See also the screencast
Comment 6 markiewb 2016-04-13 20:26:10 UTC
(In reply to Ralph Ruijs from comment #4)
> Which filetype are you working with? 
> 
text/x-java
Comment 7 Ralph Ruijs 2016-04-14 07:17:12 UTC
(In reply to markiewb from comment #5)
> Created attachment 159256 [details]
> Shows the SHIFT-TAB issue
> 
> @Ralph: The issue still valid in Product Version: NetBeans IDE Dev (Build
> 201604130001)
> 
> See also the screencast

Reproducible, thanks!
Comment 8 Ralph Ruijs 2016-04-14 08:39:16 UTC
The current implementation seems to be how it was intended. Shift-Tab only works when the caret is inside the indent-block, or if there is a selection.
This is how it works in 8.1, if you think it should work differently please open a new issue. Thanks!