emmetio / emmet-eclipse

Emmet for Eclipse
http://emmet.io
343 stars 74 forks source link

Tab key changes window focus instead of inserting tab character for 'Untitled', unsaved files #47

Closed ghost closed 6 years ago

ghost commented 9 years ago

I've installed Eclipse Neon-nightly

eclipse.buildId=4.6.0.N20150910-2000

with Emmet

io.emmet.eclipse (1.0.0.201401132323) "Emmet for Eclipse"

If Emmet prefs are set as

[X] Expand Abbreviations by Tab Key

... in Files with extensions:
    html, xml, xsl, xsd, css, php, tpl, less, styl, scss, sass, jade, haml, hbs, twig

when opening/creating any new 'Untitle' file in Eclipse, e.g. "Untitled Text File" or "Untitled PHP file", use of 'Tab' key in the file-editor fails to insert a Tab.

Instead, window focus is toggled to the next window.

Clicking back in the editor window, focus is returned, and keystrokes are functional -- until 'Tab' is again entered. Then, again, focus is lost.

If the 'Untitled' file is saved, as-is, with no name change, to the existing workspace, then -- once saved -- the Tab key functions normally in the editor, inserting a Tab character.

Uninstalling Emmet plugin completely fixes this behavior, and 'Tab' in 'Untitled' files works normally.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.