// Copyright (C) 2002  Peter Weighill
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or any later version.
//
// All copyright notices must remain intact in this script.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

function handleKeyDown() {
	var code = window.event.keyCode;
	
	if (window.event.type=="keydown")
	{
		if (window.event.ctrlKey)
		{
			if (code==66) {bold(); return false;}
			if (code==73) {italicize(); return false;}
			if (code==85) {underline(); return false;}
		}
	}
}

document.PostTopic.Message.onkeydown = handleKeyDown;

