Page 1 of 1

BG kbd - always present key except letter one

Posted: 20 May 2022 12:20
by lazna
Have part of large script which print lines of items to screen and users have to choose one them by press key of assigned letter. Number of lines vary, all alphabete letters may be occupied. There should be two more options except choosing some items in the menu: (b)ack and (q)uit. Convention used in menus in rest of script is "first letter in menu word have to be keypressed" but, as mented, all letters could be occupied in this case.

Want to employ only keys which are same on all keyboards, regardingless if it is desktop or laptop, or if there is some regional keybord layout (still expect latin letters [a-z] present on keyb layout). Is there any key in the keyboard which is shared across all keyboard layout except a-z?

Testing CTRL+KEY solution which give me value 2 for CTRL+b resp. 17 for CTRL+q, but do not know if this is reliable and still prefer single key solution, if it is possible.

Any ideas?

Re: BG kbd - always present key except letter one

Posted: 20 May 2022 12:48
by aGerman
Honestly I don't even expect latin letters to be present on every keyboard. Thinking of cyrillic or greek keyboard layouts for example. Maybe you'll have luck with 0-9 which should be at least more likely to exist than A-Z.

Steffen

Re: BG kbd - always present key except letter one

Posted: 20 May 2022 16:46
by lazna
Its a technical tool, for such purpose expecting querty (or similar) keyb is far enough. I have not ambitions to make it working on ANY computer

Re: BG kbd - always present key except letter one

Posted: 20 May 2022 23:35
by ShadowThief
I'd expect every keyboard to have a spacebar and an enter button

Re: BG kbd - always present key except letter one

Posted: 22 May 2022 14:18
by lazna
thats it!

I cant realize enter key use is possible, but it does work!

thanks, L.

Re: BG kbd - always present key except letter one

Posted: 25 May 2022 08:07
by Andrew92
ShadowThief wrote:
20 May 2022 23:35
I'd expect every keyboard to have a spacebar and an enter button
That would be expected yes but I think we'll be suprised