Improvement requests :  K-Meleon Forum
Use this forum to talk about a feature you're missing. Use the bug tracker to report it if necessary. 
"close tab" action in right-click context menu
Posted by: mhf
Date: June 27, 2009 10:54PM

Could one of you so-friendly and helpful people show me how to add an item to the context menu so that I could close the current tab (instead of having to go up to the tab and middle-click).

THANKS !

Options: ReplyQuote
Re: "close tab" action in right-click context menu
Posted by: desga2
Date: June 28, 2009 12:43AM

I think you are a little vague.
You can do it with the accelerate Ctrl+F4 or with a mouse gesture (Look Mouse Gesture Plugin in Preferences).

A) Read this documentation about menus.cfg file.

B) Read this documentation about macros.

There are two ways to do it:

1) Go to Edit -> Configuration -> Menus, and add this code lines at the end of file:

# New inline menu for context menu to close:
!Document{
	!CloseTab
}

Save changes in file and restart K-Meleon to changes take effect.

2) Go to Edit -> Configuration -> User-Defined Macros, and create a new text file, renamed it to Close_CM.kmm (for example) and open the file with notepad (for example). Add this macro code in file:

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
#
# ---------- Close menu in Context menu -------------------------------------------------
#
# Dependencies		: -
# Resources			: -
# Preferences		: -
# Version			: -
# ---------------------------------------------------------------------------------------
#
_Close_CM_BuildMenu{
# New inline menu for context menu to close:
setmenu("Document",inline,"CloseTab",-1);
}

$OnInit=$OnInit."_Close_CM_BuildMenu;";
Save changes in file and restart K-Meleon to changes take effect.

K-Meleon in Spanish



Edited 5 time(s). Last edit at 06/28/2009 12:53AM by desga2.

Options: ReplyQuote
Re: "close tab" action in right-click context menucool smiley
Posted by: mhf
Date: June 28, 2009 06:45PM

Thanks desga2 - it was a bit vague (result of a late night out). cool smiley

I used method no. 1 : perfect, thanks again.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.