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 235048 - second tab activates suggestion in html editor
Summary: second tab activates suggestion in html editor
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: issues@web
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-26 16:43 UTC by ionuion
Modified: 2014-07-28 07:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screencast (2.60 MB, video/quicktime)
2013-08-26 16:43 UTC, ionuion
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ionuion 2013-08-26 16:43:36 UTC
Created attachment 139261 [details]
screencast

Environment:
Product Version: NetBeans IDE Dev (Build 201308202300)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Mac OS X version 10.7.5 running on x86_64; UTF-8; en_US (nb)
User directory: /Users/ionuion/Library/Application Support/NetBeans/dev
Cache directory: /Users/ionuion/Library/Caches/NetBeans/dev

Steps to reproduce:
1. Open any Html or Jsp file
2. Add this content somewhere in the file:
        <input name="hey"
onfocus="myfunction();"/>
3. position the cursor on the second line of the content at 2.
4. move the line to the right by continuously pressing tab

Expected results:
the line is properly indented

Actual result:
after first tab the content becomes:
        <input name="hey"
               accept=""onfocus="myfunction();"/>
The first suggestion in the suggestion box is activated upon the second tab. Not as intended.
Comment 1 Milutin Kristofic 2013-08-26 16:52:26 UTC
Sending to html team for evaluation
Comment 2 Vladimir Riha 2013-08-27 06:28:39 UTC
Reproducible, unless you press Tab faster than completion window opens


Product Version: NetBeans IDE Dev (Build 201308260001)
Java: 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b39
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 3 Marek Fukala 2013-08-27 07:20:43 UTC
Same situation if you press enter inside a tag -> the completion opens, subsequent enter completes the first item as the tab does.
Comment 4 Marek Fukala 2013-08-27 07:30:56 UTC
fixed in web-main#e1394a7f09bf
Comment 5 ionuion 2013-10-17 08:29:11 UTC
Reproducible, although not with the exact initial scenario.

Environment:
Product Version: NetBeans IDE 7.4 (Build 201310111528)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Mac OS X version 10.7.5 running on x86_64; UTF-8; en_US (nb)


Steps to reproduce:
1. Add new jsp file to web project by using the wizard.
2. Position the cursor on the following line:
<h1>Hello World!</h1>
between the first 1 and >

3. Press tab key twice (not too fast, allow for completion to come out)

Expected result:
tab key should only be used to indent text

Actual result:
tab key triggers completion
Comment 6 ionuion 2014-04-01 14:15:54 UTC
Not reproducible in NetBeans 8.0

Environment:
Product Version: NetBeans IDE 8.0 (Build 201403101706)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Mac OS X version 10.9.2 running on x86_64; UTF-8; en_US (nb)
Comment 7 Marek Fukala 2014-07-28 07:52:31 UTC
closing then.

(In reply to ionuion from comment #6)
> Not reproducible in NetBeans 8.0