Improvement requests :  K-Meleon Web Browser Forum
Use this forum to talk about a feature you're missing. 
"close tab" action in right-click context menu
Posted by: mhf
Date: June 27, 2009 03: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 27, 2009 05:43PM

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.

cool smiley 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/27/2009 05:53PM by desga2.

Options: ReplyQuote
Re: "close tab" action in right-click context menu:cool:
Posted by: mhf
Date: June 28, 2009 11:45AM

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

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

Options: ReplyQuote


K-Meleon forum is powered by Phorum.