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 239446 - Macro definition doe not add function keys
Summary: Macro definition doe not add function keys
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Macros (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-13 07:36 UTC by jmsoft
Modified: 2014-01-15 02:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (972.08 KB, text/plain)
2013-12-13 07:37 UTC, jmsoft
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jmsoft 2013-12-13 07:36:59 UTC
Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0_40
Runtime = Java HotSpot(TM) Client VM 24.0-b56


Steps to reproduce:
- Click start macro recording
- Press a function key, e.g. F3
- Click stop macro recording
- Assign a name to the macro
=> The macro is empty wheras I had expected to see something indicating F3.
Comment 1 jmsoft 2013-12-13 07:37:12 UTC
Created attachment 143129 [details]
IDE log
Comment 2 Jiri Prox 2013-12-13 08:35:08 UTC
The macro does not record single keystrokes, but whole actions.

In this case the action find-next (in default keymap) was not recorded
Comment 3 Svata Dedic 2014-01-13 15:33:29 UTC
For some reason the recording implementation was duplicated in editor and editor.lib2. Actions that derived from BaseActions used the live implementation, but actions exteding editor.lib2's SPI AbstractEditor action used a dead implementation (however this one was covered by tests).

I've delegated from editor to editor.lib2 so now all actions use the same macro / text buffer.

Implemented in jet-main#81aad2fbbe81
Comment 4 Quality Engineering 2014-01-15 02:39:41 UTC
Integrated into 'main-silver', will be available in build *201401150002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/81aad2fbbe81
User: Svata Dedic <sdedic@netbeans.org>
Log: #239446: macro recording delegated to lib2 impl