pete-gordon / oricutron

Portable Oric-1/Atmos/Telestrat and Pravetz 8D emulator
http://www.petergordon.org.uk/oricutron/
GNU General Public License v2.0
69 stars 25 forks source link

Keyboard shortcuts improvement ALT-T and ALT-L #88

Open 0ric1 opened 8 years ago

0ric1 commented 8 years ago

Keyboard shortcuts improvement ALT-T and ALT-L

I'm using F1 + T very often to load a tape file and then I always have to type CLOAD" + ENTER key. To have lesser keyboard action I added the ALT-T to load a tape (same as F1 + T) and ALT-L typing CLOAD" into the emulator (with the help of the clipboard), so that I only have to press the ENTER key.

Now ALT-T, select a tape file, ALT-L + ENTER is all you need to do.

Should I commit this?

pete-gordon commented 8 years ago

Sure, but only if these aren't keyboard combinations that would be valid on the Oric (I can't remember if Alt is mapped to an Oric key).

pete-gordon commented 8 years ago

In fact, both ALT keys are mapped to Oric keys, so these shortcuts are no good:

https://github.com/pete-gordon/oricutron/blob/master/8912.c#L101

pete-gordon commented 8 years ago

Suggestion: Use F1 as a modifier?

e.g.: Press and release F1 = Go to menu Hold F1 and press key = Do menu shortcut that corresponds with that key?

But then would that be any quicker then just pressing F1 then the key? Don't know.

polluks commented 8 years ago

How about this: The Atmos has one Funct key, so only SDLK_RALT needs to be reserved and SDLK_LALT will be left for the system... Oops, my Mac has only one alt key :-(

0ric1 commented 8 years ago

My Oric-1 has no ALT key, only CTRL, SHIFT (left and right), RETURN and DEL. The Atmos and Telestrat seems to have a FUNCT key and the Pravetz a C/L key. The ALT mapping is implemented for the e.g. sedoric http://oric.free.fr/DISKS/sedoric.html I think, that maps the FUNCT to ALT? When pressing ATL-T in BASIC mode you get TYPE and ALT-L LINPUT. But where is ALT GR (right ALT) used?

polluks commented 8 years ago

In the readme I wrote "AltGr - Additional modifier". Euphoric says "AltGr to access the third key symbols".

pete-gordon commented 8 years ago

Well, hold on. Both alt keys are mapped to different places in the Oric keyboard matrix. I don't remember off hand what they are, but I wouldn't have mapped them both for no reason...

polluks commented 8 years ago

I suppose for Euphoric compatibility. Anyway it's not a requirement.