mirror of https://github.com/macssh/macssh.git
removed keymap switch if emacs option key
This commit is contained in:
parent
cd2dfbdcb0
commit
779328a755
|
@ -1066,12 +1066,18 @@ void HandleEvent(EventRecord *myEvent) //CCP split this from DoEvents so we can
|
||||||
//this next bit takes care of setting the KCHR based on the EMACS hack pref
|
//this next bit takes care of setting the KCHR based on the EMACS hack pref
|
||||||
if ((currentScript == smRoman)&&(screens[i].emacsmeta == 2))
|
if ((currentScript == smRoman)&&(screens[i].emacsmeta == 2))
|
||||||
{
|
{
|
||||||
|
/* NONO */
|
||||||
|
/* why changing current script ?
|
||||||
|
this forced keymap to 'US' whatever the keyboard is really.
|
||||||
|
looks like I could get rid of all this haveChangedKCHR stuff, no ?
|
||||||
if (!haveChangedKCHR) //if we haven't already done this
|
if (!haveChangedKCHR) //if we haven't already done this
|
||||||
{
|
{
|
||||||
SetScriptVariable(currentScript,smScriptKeys,502); //set the KCHR for EMACS
|
SetScriptVariable(currentScript,smScriptKeys,502); //set the KCHR for EMACS
|
||||||
KeyScript(smRoman); //Make it active
|
KeyScript(smRoman); //Make it active
|
||||||
haveChangedKCHR = TRUE;
|
haveChangedKCHR = TRUE;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
/* NONO */
|
||||||
}
|
}
|
||||||
else if (haveChangedKCHR) //new active window doesnt want EMACS hack
|
else if (haveChangedKCHR) //new active window doesnt want EMACS hack
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue