Since 1.5.2 version exist a new ID command:
ID_EDIT_REDO
You can use it in a macro to add this option in right click context menu.
As disrupted said there is a default accelerator (key shortcut) defined to it: Ctrl+Y
Also in 1.5.3 version were added this new ID commands:
ID_MAXIMIZE_WINDOW
ID_MINIMIZE_WINDOW
ID_RESTORE_WINDOW
ID_TOGGLE_WINDOW
All this ID commands updated in documentation.
Macro Example:
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
#
# ---------- New ID commands in 1.5.2 and 1.5.3 versions --------------------------------
#
# Dependencies : -
# Resources : -
# Preferences : -
# Version : -
# ---------------------------------------------------------------------------------------
#
_newIDs_SetAccels{
# CTRL+Y is defined by default to Redo option:
#setaccel("CTRL Y","ID_EDIT_REDO");
setaccel("CTRL M","ID_MINIMIZE_WINDOW");
setaccel("CTRL SHIFT M","ID_MAXIMIZE_WINDOW");
setaccel("CTRL K","ID_RESTORE_WINDOW");
setaccel("CTRL ALT K","ID_TOGGLE_WINDOW");
}
_newIDs_BuildMenu{
# Text box context menu for Redo option:
setmenu("TextPopup",command,"&Redo","ID_EDIT_REDO",1);
# New popup menu for context menu to new window properties:
setmenu("DocumentPopup",popup,"Window Properties",-1);
setmenu("Window Properties",command,"Mi&nimize","ID_MINIMIZE_WINDOW");
setmenu("Window Properties",command,"Ma&ximize","ID_MAXIMIZE_WINDOW");
setmenu("Window Properties",command,"&Restore","ID_RESTORE_WINDOW");
setmenu("Window Properties",command,"&Toggle","ID_TOGGLE_WINDOW");
}
$OnInit=$OnInit."_newIDs_SetAccels;_newIDs_BuildMenu;";
$macroModules=$macroModules."newIDs;";
K-Meleon in Spanish
Edited 1 time(s). Last edit at 05/30/2009 10:32PM by desga2.