rtoy / maxima

A Clone of Maxima's repo
Other
0 stars 0 forks source link

fix case mapping for editing keys / FIX #1427

Open rtoy opened 2 months ago

rtoy commented 2 months ago

Imported from SourceForge on 2024-07-04 15:07:28 Created by *anonymous on 2007-05-05 10:06:39 Original: https://sourceforge.net/p/maxima/bugs/1184


This is for windows but it would be the same issue for linux.

Issue: Screwy case sensitivity for important accellerator keys.

I suspect the xmaxima file gets converted to tcl somehow, but I can't find the expected text inside the xmaxima.exe file.

There's a problem, kids and it's that the upper case 'g' won't break out of program and it's the same problem for the edit keys like copy/paste, undo, and whatever else.

I'm pretty sure that just duplicating the lines and adding a capital letter will probably compile/translate or somehow convert to the correct tcl code.

These keys are defined at line: 3579 bind $w <Control-w> $dismiss add bind $w <Control-W> $dismiss

and at line 9239 the alpha could be dealt with the saem way.

bind CNtext <Control-g> "CMinterrupt %W " bind CNtext <Control-u> "CNclearinput %W " bind CNtext "\)" "CNblinkMatchingParen %W %A" bind CNtext "\]" "CNblinkMatchingParen %W %A" bind CNtext "\}" "CNblinkMatchingParen %W %A" bind CNtext <Control-j> "tkTextInsert %W %A ; openMathAnyKey %W %K %A" bind CNtext <Alt-p> "CNpreviousInput $w -1" bind CNtext <Alt-n> "CNpreviousInput $w 1" bind CNtext <Alt-s> {sendMaxima %W ":s\n" } bind CNtext <Control-Key-c> {tk_textCopy %W ;break} bind CNtext <Control-Key-x> {tk_textCut %W ;break} bind CNtext <Control-Key-v> {tk_textPaste %W ;break}

Again, I can't prove this because it appears thet the xmaxima.exe file uses some other source, perhaps compiled tcl code, but this is what I'd do if I could get it into the exe.

rtoy commented 2 months ago

Imported from SourceForge on 2024-07-04 15:07:29 Created by robert_dodier on 2007-05-06 18:12:33 Original: https://sourceforge.net/p/maxima/bugs/1184/#b3b1


rtoy commented 2 months ago

Imported from SourceForge on 2024-07-04 15:07:33 Created by robert_dodier on 2024-03-04 21:40:20 Original: https://sourceforge.net/p/maxima/bugs/1184/#1d35