thetooi / zen-coding

Automatically exported from code.google.com/p/zen-coding
0 stars 0 forks source link

Zen-Coding (Notepad++) overriding keyboard shortcuts in external applications ? #189

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using Zen-Coding (v.0.6.1) with Notepad++ (v.5.6.4) on Windows XP, and
I've just noticed that some keyboard shortcuts in other applications have
stopped working when Notepad++ is opened at the same time.

Some examples :
Ctrl+E : used in Photoshop to merge two layers together
Ctrl+E : used in Firefox to put focus on the search box
Ctrl+Shift+D : used in Keynote NF to insert the current date

If notepad++ is running at the same time, those shortcuts don't work
anymore (nothing happens in either application). Instead, those shortcuts
do activate the expected Zen-Coding behavior in Notepad++ (e.g. Ctrl+E will
expand the abbreviation, if any), *even though the Notepad++ window is not
in focus*.

As soon as I close Notepad++, all shortcuts work again in their respective
applications (I don't have to restart Photoshop or anything).

From what I can tell, this problem affects any application (I just made
quick tests with ACDSee and Thunderbird, which both use Ctrl+E for some
purpose, and it didn't work when Notepad++ was running) and it only affects
shortcuts which are used by Zen-Coding (standard Notepad++ shortcuts don't
interfere with external applications).

So everything works as if the Zen-Coding shortcuts are defined for the
whole system (OS) and not for the context of the application (Notepad++)
only, as it should.

I have experienced a similar problem on another computer running Windows 7
Ultimate.

Edit : I just updated Notepad++ to the latest version (5.6.8) but the
problem remains.

Original issue reported on code.google.com by vincent....@gmail.com on 1 Jun 2010 at 8:11

GoogleCodeExporter commented 9 years ago
It's a problem of N++: it requires patching to work properly

Original comment by serge....@gmail.com on 1 Jun 2010 at 12:26

GoogleCodeExporter commented 9 years ago
I've also noticed this behavior, really annoying.

Original comment by dabbihel...@gmail.com on 15 Jun 2010 at 11:32

GoogleCodeExporter commented 9 years ago
I found a workaround to this problem. Open this file:
C:\Program Files (x86)\Notepad++\plugins\NppScripting\includes\Zen Coding.js
On line 7998 edit:
addMenuItem('Expand Abbreviation', 'expand_abbreviation', 'Ctrl+E');
Change 'Ctrl+E' to whatever you want or a shortcut that isn't used by another 
application (like Photoshop). Now, you only need to get used to a new shortcut.

Original comment by exo...@gmail.com on 30 Oct 2011 at 11:59

GoogleCodeExporter commented 9 years ago
Thanks for the workaround exo.

Original comment by mbrin...@gmail.com on 21 Sep 2013 at 6:07

GoogleCodeExporter commented 9 years ago
Thank you a lot of information about Zen-Coding using of notepad++. I think 
that it is very helpful for us.

<a href="http://newodesktest.blogspot.com" title="All odesk test ">All odesk 
test </a>

Original comment by morshe...@gmail.com on 24 Feb 2014 at 4:13

Attachments: