keycodes
[1/18] from: gchiu::compkarori::co::nz at: 23-Apr-2001 19:33
Just looking for the key codes to use with VID. In
particular, Alt-left arrow.
Ta.
--
Graham Chiu
[2/18] from: depotcity:telus at: 23-Apr-2001 1:34
And the enter key as well please?
TBrownell
[3/18] from: allenk:powerup:au at: 23-Apr-2001 18:56
Hi Graham,
Instead of fish, I'll give you a fishing rod. :-)
Run this code to see the chars and keycodes as you type them (the window
must have focus)
REBOL []
key-event: func [face event] [
if event/type = 'key [
print mold event/key
]
event
]
insert-event-func :key-event
view layout [
text {Type and see the char or keycode printed in console}
button "Remove Event & Close" 200 [remove-event-func :key-event
unview/all]
]
Cheers,
Allen K
[4/18] from: allenk:powerup:au at: 23-Apr-2001 19:54
This is taking for ever to show up on the list so I'm sending it direct to
you.
[5/18] from: gchiu:compkarori at: 23-Apr-2001 21:47
Hi Allen,
> Instead of fish, I'll give you a fishing rod. :-)
>
I'm still hungry :-( It doesn't show the alt key combos.
--
Graham Chiu
[6/18] from: gjones05:mail:orion at: 23-Apr-2001 6:45
From: "Allen Kamp"
<snip>
> Run this code to see the chars and keycodes as you type them (the window
<<quoted lines omitted: 10>>
> text {Type and see the char or keycode printed in console}
> button "Remove Event & Close" 200 [remove-event-func
:key-event
> unview/all]
> ]
>
> Cheers,
>
> Allen K
Hey, that's a nifty program. Thanks. I guess that the Alt keys are just
not "recognized".
--Scott Jones
[7/18] from: holger:rebol at: 23-Apr-2001 6:10
On Mon, Apr 23, 2001 at 06:45:21AM -0500, GS Jones wrote:
> Hey, that's a nifty program. Thanks. I guess that the Alt keys are just
> not "recognized".
The Alt key is not portable across platforms. Windows uses it e.g. to activate
program menus.
--
Holger Kruse
[holger--rebol--com]
[8/18] from: petr:krenzelok:trz:cz at: 23-Apr-2001 15:12
Holger Kruse wrote:
> On Mon, Apr 23, 2001 at 06:45:21AM -0500, GS Jones wrote:
> > Hey, that's a nifty program. Thanks. I guess that the Alt keys are just
> > not "recognized".
>
> The Alt key is not portable across platforms. Windows uses it e.g. to activate
> program menus.
>
I don't have too much time to follow discussion these days :-), but - what does it
matter if it is or it is not multiplatform? Isn't it programmer's responsibility
what Alt key he/she assigns to any action?
In reality it was one of requested features - ability to underline some letter of
text by any kind of escape char, to let user know what Alt + key combination works
as hot key ...
view layout [button "E&xit" [quit]] ; "x" would be underlined, Alt + "x" would
perform the action ...
Cheers,
-pekr-
[9/18] from: holger:rebol at: 23-Apr-2001 6:46
On Mon, Apr 23, 2001 at 03:12:50PM +0200, Petr Krenzelok wrote:
> In reality it was one of requested features - ability to underline some letter of
> text by any kind of escape char, to let user know what Alt + key combination works
> as hot key ...
Shortcuts are a good idea and planned for a future version. Not using the
Alt key though. Probably either using the plain key or Ctrl + key.
> view layout [button "E&xit" [quit]] ; "x" would be underlined, Alt + "x" would
> perform the action ...
Not, it would not. At least not on many operating systems. There are problems in
Windows, and in AmigaOS Alt + letter is processed by the OS as well and used for
selecting international characters. Having Alt + letter as a shortcut would no
longer allow you to enter international characters into a string gadget.
--
Holger Kruse
[holger--rebol--com]
[10/18] from: petr:krenzelok:trz:cz at: 23-Apr-2001 15:54
Holger Kruse wrote:
> On Mon, Apr 23, 2001 at 03:12:50PM +0200, Petr Krenzelok wrote:
> > In reality it was one of requested features - ability to underline some letter of
> > text by any kind of escape char, to let user know what Alt + key combination works
> > as hot key ...
>
> Shortcuts are a good idea and planned for a future version. Not using the
> Alt key though. Probably either using the plain key or Ctrl + key.
OK, nice it is planned. But no plain key, please :-) Imagine Window, where you have grid
of records (list) and also buttons with assigned shortcuts. In our IS we develop here
our grid has focus by default. Once user starts to type some char "A" - "Z" "a" "z",
search pop-up window appears automatically ....
> > view layout [button "E&xit" [quit]] ; "x" would be underlined, Alt + "x" would
> > perform the action ...
>
> Not, it would not. At least not on many operating systems. There are problems in
> Windows, and in AmigaOS Alt + letter is processed by the OS as well and used for
> selecting international characters.
Aha, as for international chars on "czech" keyboard, we use right Alt key, called AltGr
(Gr=graphics?), e.g. pressing AltGr + "V" results in "@" char. Left Alt key is free from
international chars selection ... you can use it freely in you app, or so I was told
:-)
> Having Alt + letter as a shortcut would no
> longer allow you to enter international characters into a string gadget.
see above ... now I am curious if there is difference in left and right Alt keys on
other language keyboards??
-pekr-
[11/18] from: gjones05:mail:orion at: 23-Apr-2001 9:20
From: "Petr Krenzelok"
> Holger Kruse wrote:
>
> > On Mon, Apr 23, 2001 at 06:45:21AM -0500, GS Jones wrote:
> > > Hey, that's a nifty program. Thanks. I guess that the Alt keys are
just
> > > not "recognized".
> >
> > The Alt key is not portable across platforms. Windows uses it e.g. to
activate
> > program menus.
> >
>
> I don't have too much time to follow discussion these days :-), but - what
does it
> matter if it is or it is not multiplatform? Isn't it programmer's
responsibility
> what Alt key he/she assigns to any action?
>
> In reality it was one of requested features - ability to underline some
letter of
> text by any kind of escape char, to let user know what Alt + key
combination works
> as hot key ...
>
> view layout [button "E&xit" [quit]] ; "x" would be underlined, Alt + "x"
would
> perform the action ...
This would be a great usability feature for a future edition. I am not
familiar enough with the various platforms to the standards for the hotkey
function, but surely there is some commonality that could be encapsulated
(like each platform knows how to interpret its version of a hotkey). The
current hotkey feature seems to be fairly limited, assuming that I
understand how it is to be used.
--Scott Jones
[12/18] from: holger:rebol at: 23-Apr-2001 7:44
On Mon, Apr 23, 2001 at 03:54:40PM +0200, Petr Krenzelok wrote:
> see above ... now I am curious if there is difference in left and right Alt keys on
> other language keyboards??
German and US Amiga keyboards: no, they behave in the same way and
trigger intl characters. That's why they should not be used as qualifier
keys in applications.
--
Holger Kruse
[holger--rebol--com]
[13/18] from: petr:krenzelok:trz:cz at: 23-Apr-2001 16:51
Holger Kruse wrote:
> On Mon, Apr 23, 2001 at 03:54:40PM +0200, Petr Krenzelok wrote:
> > see above ... now I am curious if there is difference in left and right Alt keys
on
> > other language keyboards??
>
> German and US Amiga keyboards: no, they behave in the same way and
> trigger intl characters. That's why they should not be used as qualifier
> keys in applications.
>
so small example:
let's say I have menu item called "Protocols" .... I will decide to use "P" as char as
shortcut key. So pressing Alt + "P" pop-ups the right menu on me ... while Ctrl + "P"
is
used to be used as "print" shortcut in most Windows apps ... I just wonder what would
Windows users do, if Alt + "P" would be linked to any of int. chars?
So you say, on Amiga, you can't assign Alt + "some-char" to let's say menu-action, if
some-char key is linked to any international char?
... OK, it's up to you to find some optimal solution, no problem here. Now just tell
me
how to underline part of face text? :-) Maybe VID could contain some kind of dialect
to
allow various text styles being present inside one text face? :-) Has anyone found any
solution yet? (don't tell me I should use separate faces for each text style?) Will there
be any solution to that in the future?
Thanks,
-pekr-
[14/18] from: carl:rebol at: 23-Apr-2001 8:41
Add to the test script:
print event/shift
print event/control
To tell you these other keys being held down.
-Carl
[15/18] from: ingo:2b1 at: 23-Apr-2001 19:31
Hi Holger,
Once upon a time Holger Kruse spoketh thus:
> On Mon, Apr 23, 2001 at 03:54:40PM +0200, Petr Krenzelok wrote:
> > see above ... now I am curious if there is difference in left and right Alt keys
on
> > other language keyboards??
>
> German and US Amiga keyboards: no, they behave in the same way and
> trigger intl characters. That's why they should not be used as qualifier
> keys in applications.
>
sorry, but on all german keyboards I had so far it is like Petr described:
rightAlt+Q --> @
leftAlt+Q --> whatever the program wants to do on alt+q
kind regards,
Ingo
[16/18] from: gchiu:compkarori at: 24-Apr-2001 7:45
On Mon, 23 Apr 2001 07:44:34 -0700
Holger Kruse <[holger--rebol--com]> wrote:
> On Mon, Apr 23, 2001 at 03:54:40PM +0200, Petr Krenzelok
> wrote:
<<quoted lines omitted: 6>>
> used as qualifier
> keys in applications.
All the windows browsers I have used will recognise Alt-left
as back. Is that the same for international versions?
--
Graham Chiu
[17/18] from: holger:rebol at: 23-Apr-2001 13:11
On Mon, Apr 23, 2001 at 07:31:05PM +0200, Ingo Hohmann wrote:
> sorry, but on all german keyboards I had so far it is like Petr described:
> rightAlt+Q --> @
> leftAlt+Q --> whatever the program wants to do on alt+q
German PC keyboards: yes. German Amiga keyboards are different.
--
Holger Kruse
[holger--rebol--com]
[18/18] from: petr:krenzelok:trz:cz at: 24-Apr-2001 0:05
----- Original Message -----
From: "Holger Kruse" <[holger--rebol--com]>
To: <[rebol-list--rebol--com]>
Sent: Monday, April 23, 2001 10:11 PM
Subject: [REBOL] Re: keycodes
> On Mon, Apr 23, 2001 at 07:31:05PM +0200, Ingo Hohmann wrote:
> > sorry, but on all german keyboards I had so far it is like Petr
described:
> > rightAlt+Q --> @
> > leftAlt+Q --> whatever the program wants to do on alt+q
>
> German PC keyboards: yes. German Amiga keyboards are different.
There should be something like "most" platforms POV. What percentage of all
installed Rebol userbase is Amiga based? Besides that - old Amiga hw dies
slowly ... (nothing against amiga though:-). What percentage of such Amigas,
has German based keymaps?
Is it related to specific Amiga hw, or is that OS issue?
well, being it one way or other, it doesn't matter so much, better to have
some keycodes, than no keycodes, I just wanted to prefer platform specific
way on each of platforms ... (e.g. I still miss view/options layout [button
OK
] [maximise] ; which, btw crashes rebol here. ??)
-pekr-
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted