/*
	Month Calendar - A Monthly Calendar with Week Numbers
	Copyright © 2005-2008 Harry Whitfield

	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 (at your option) any later version.

	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.

	You should have received a copy of the GNU General Public
	License along with this program; if not, write to the Free
	Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
	MA  02110-1301  USA
	
	Month Calendar - version 2.4
	12 March, 2008
	Copyright © 2005-2008 Harry Whitfield
	mailto:g6auc@arrl.net

*/

// Modifier-key Inspection Functions - revised 2 December 2007
// 
// Macintosh: capslock+shift+control+option
// Windows:   capslock+shift+control+alt
//
// Option is regarded as equivalent to alt

function capslockKeyDown(sem)		// Hack for bug in K4.5	 2 December 2007
{
	if (sem === undefined) { return false; }
	return  (sem.indexOf('capslock') >= 0);
}

function shiftKeyDown(sem)   { return  system.event.shiftKey; }
function controlKeyDown(sem) { return  system.event.ctrlKey; }
function optionKeyDown(sem)  { return  system.event.altKey; }
