Is it possible to disable file execution by ENTER and SHIFT+ENTER keyboard buttons?
I don't want to allow FAR to run any file.
I just want to view them by F3-button, or by applications from FAR Menu (F2)
Any suggestions how to do it?
Disable file execution by ENTER button
- HaRT
- Moderator
- Posts: 10869
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 221 times
- Been thanked: 358 times
Disable file execution by ENTER button
astonu, the easiest way is to record (and save) a keyboard macro for each of these keys which only performs its action for folders: use
CtrlShift.
to start/finish recording, set [x] Execute for folders
. Read Help and CHM manual on macros ([i][b]%FarHome%\Encyclopedia\macroapi_manual.en.chm[/b][/i]
) for more info.Фар есть инструмент, а не нянька. © 2009 DrKnS
Disable file execution by ENTER button
Thanks, It works.
I leave it here, in case I will forgot:
To disable these two hot keys you need to create two files in %USERPROFILE%\AppData\Roaming\Far Manager\Profile\Macros\internal
Shell_Enter.lua
Shell_ShiftEnter.lua
I leave it here, in case I will forgot:
To disable these two hot keys you need to create two files in %USERPROFILE%\AppData\Roaming\Far Manager\Profile\Macros\internal
Shell_Enter.lua
Code: Select all
Macro {
description="BlockEnter";
area="Shell"; key="Enter";
flags="NoFolders";
code="";
}
Code: Select all
Macro {
description="BlockShiftEnter";
area="Shell"; key="ShiftEnter";
flags="NoFolders";
code="";
}