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.
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.
Sending to html team for evaluation
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)
Same situation if you press enter inside a tag -> the completion opens, subsequent enter completes the first item as the tab does.
fixed in web-main#e1394a7f09bf
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
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)
closing then. (In reply to ionuion from comment #6) > Not reproducible in NetBeans 8.0