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

Dan Scott denials at gmail.com
Mon May 25 10:31:43 EDT 2009


Hey Grant:

2009/5/25 Grant Johnson <fgjohnson at upei.ca>:
> 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
>
>
> --
>

Good news, I merged this to Evergreen trunk about a month ago as
http://svn.open-ils.org/trac/ILS/changeset/12862/trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js
(and credited Alexander O'Neill accordingly).

-- 
Dan Scott
Laurentian University


More information about the Open-ils-dev mailing list