On Wed, 2015-02-18 at 10:19 -0600, Jeremiah Benham wrote: > I was going to create some mac specific keybindings for the Darwin > version. What would I have to do to make this the default for the > darwin build. Should I create a patch that modifies the keybindings > file or should I create an additional file and have denemo look for > that by default on Darwin? Can keybindings be applied to the scheme > editor? > Well, this is what the "profile" code was for. We still have several .commands and .shortcuts pairs in the distribution, but people have to load them via the Command Center as the startup dialog mechanism was dropped, IIRC because we found that maintaining multiple copies was too difficult. (If there are files that are not being used by the developers then they become out of date and no-one reports it).
In this case there is no requirement to have different commands available, just shortcuts. That can be achieved via a script - see examples in the Input->PC Keyboard menu. So what could be done is to query the architecture at run time and set up appropriate key bindings. If this were done in the denemo.scm file it would be run at every new score, rather than at startup, which is too often really. I'm not sure if there are scheme procedures available to determine the OS, we could create defines from Denemo's start up routines (hmm, we may have something already to tell scheme if we are on windows, these defines used to be created in view.c but may have moved)... I'm still *very* short of time for answering questions, so I'll send this very incomplete reply so as not to hold you up. Richard > > Jeremiah > > _______________________________________________ > Denemo-devel mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/denemo-devel _______________________________________________ Denemo-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/denemo-devel
