flat assembler
Message board for the users of flat assembler.

Index > IDE Development > Changing action keys in FASW.EXE - close file with ESC key

Author
Thread Post new topic Reply to topic
shutdownall



Joined: 02 Apr 2010
Posts: 518
Location: Munich
shutdownall
Another thing which confused me the very first time (and from time to time again now) is that FASMW.EXE closes the opened file on pressing ESC key.
Everybody who use searching in other WIN applications use it mostly the way that you search text with CTRL-F and when found you can close the search window by simply hitting the ESC key.

I don't know for what this feature is. I never found this behaviour in any other WIN program. Its very frustrating when you want to look your source code and try to close this search context through hitting ESC key. In fact it is not necessary to hit ESC but for me it is a kind of reflex. Maybe for other people same.

So is there a chance to shut off this closing function with ESC key or at least to change the closing key ?

Thanks a lot.
Wink
Post 02 Apr 2010, 17:14
View user's profile Send private message Send e-mail Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17474
Location: In your JS exploiting you and your system
revolution
The ESC thing is one of the reasons I don't use fasmw. Perhaps you can consider using another editor instead. I used Notepad2, but there are many others around.
Post 02 Apr 2010, 17:19
View user's profile Send private message Visit poster's website Reply with quote
cod3b453



Joined: 25 Aug 2004
Posts: 619
cod3b453
You can recompile the IDE - remove line 3345 from (FASM)/SOURCE/IDE/FASMW/FASMW.ASM
Code:
FVIRTKEY+FNOINVERT,VK_ESCAPE,IDM_CLOSE,\    


EDIT: or modify VK_ESCAPE to another key of your choosing
Post 03 Apr 2010, 15:04
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4240
Location: 2018
edfed
for me, it is not a problem, i started coding in fasm, and almost all the computer stuff with fasm.

i bought my first PC (PMMX@233MHz) 1 month before i knew fasmw (under moile account in 2005) Smile

if your first computer practice include fasmw, it is not a problem.
Post 03 Apr 2010, 17:56
View user's profile Send private message Visit poster's website Reply with quote
shutdownall



Joined: 02 Apr 2010
Posts: 518
Location: Munich
shutdownall
Quote:

You can recompile the IDE - remove line 3345 from (FASM)/SOURCE/IDE/FASMW/FASMW.ASM

Code:
FVIRTKEY+FNOINVERT,VK_ESCAPE,IDM_CLOSE,\



EDIT: or modify VK_ESCAPE to another key of your choosing


Thank you very much, cod3b453.
I removed this line, compiled and now I am happy.
Very Happy Very Happy Very Happy

@edfed
Okay if you can resist to hit escape.
For me its a reflex to kick off any temporarily context window in an application.
And this works in many applications, at least in MS products.
Post 03 Apr 2010, 20:35
View user's profile Send private message Send e-mail Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7755
Location: Kraków, Poland
Tomasz Grysztar
Yes, fasmw does not follow the Windows' UI standards, as it follows the paradigms from the times of DOS and so-called Orthodox File Managers* - this is because it was written to provide me with the interface similar with the one I was used to while programming with DOS Navigator (this was the environment in which the fasm was written), and I wanted to have the same keyboard interface regardless of the operating system I'm running on. Well, so far there's only FASMW and FASMD. though I still hope to manage to make FASMX port as well.

However it will be possible to adjust FASMW to behave differently when I release the FASMW with plugin support (this may be before of after FASMX, I don't know yet).

_____
* You may notice that many Windows applications following the OFM interface (like Frigate or WinSCP - from the ones I'm using right now) still use Esc key to close a file editor window, too.
Post 06 Apr 2010, 15:08
View user's profile Send private message Visit poster's website Reply with quote
shutdownall



Joined: 02 Apr 2010
Posts: 518
Location: Munich
shutdownall
Thank you.
But what the hell is DOS ?
Razz
Post 06 Apr 2010, 21:35
View user's profile Send private message Send e-mail Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo
Quote:
The ESC thing is one of the reasons I don't use fasmw.

This is the strangest justification for not using an open source program by a die hard programmer Sad

Even if it was closed source, you could use ResourceHacker to change the ESC key behaviour.
Post 08 Apr 2010, 13:41
View user's profile Send private message Yahoo Messenger Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17474
Location: In your JS exploiting you and your system
revolution
pelaillo wrote:
This is the strangest justification for not using an open source program by a die hard programmer Sad
It is only one of the reasons. There are other reasons, but I don't want to turn this into a fasmw bashing thread Wink
pelaillo wrote:
Even if it was closed source, you could use ResourceHacker to change the ESC key behaviour.
Nah, too much trouble to keep changing it every time there is a new version.
Post 08 Apr 2010, 13:46
View user's profile Send private message Visit poster's website Reply with quote
edemko



Joined: 18 Jul 2009
Posts: 549
edemko
revolution
Nah
in a group of Slavic languages sounds a big vulgarism Smile i like internationalism, so many times you are a man as many languages you face(a man said)
Post 08 Apr 2010, 21:42
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17474
Location: In your JS exploiting you and your system
revolution
I didn't mean to offend our Slavic readers. Embarassed
Post 09 Apr 2010, 00:46
View user's profile Send private message Visit poster's website Reply with quote
edemko



Joined: 18 Jul 2009
Posts: 549
edemko
It's cool ie. smiling situation. Never gnaw yourself for such a curiosity Smile
Post 09 Apr 2010, 01:03
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.