[OPEN-ILS-DEV] ctrl+i for Mac Staff Client

Grant Johnson fgjohnson at upei.ca
Mon May 25 09:19:15 EDT 2009


Since I had a couple of requests for this here it is.

To use ctrl+i for Mac Staff clients, AO added the following to marcedit.js on the server.
This is NOT a patch - just a code snippit for context. 

It enables ctrl+i for ALL OS's cause italics doesn't matter in the EG staff client. :-)


		if (element.nodeKind() == 'attribute') element[0]=box.value;
		else element.setChildren( box.value );

++		//Use Ctrl+i for Mac since Ctrl+d conflicts (UPEI)
		if (element.localName() != 'controlfield') {
--			if (event.charCode == 100 && event.ctrlKey) { // ctrl+d
++			if ((event.charCode == 100 || event.charCode == 105) && event.ctrlKey) { // ctrl+d


-- 

F. Grant Johnson
  Systems Coordinator
  Robertson Library
  University of Prince Edward Island



More information about the Open-ils-dev mailing list