[Y-devel] keyboard layouts (continued)

Maurice van der Pot griffon26 at kfk4ever.com
Mon Mar 1 17:22:14 GMT 2004


On Mon, Mar 01, 2004 at 06:10:10PM +0200, Alexey Boyko wrote:
> Its a lot of work, 

Only if you use a lot of keymaps, want shortcuts for a lot of functions and
want to define them yourself. 

There will be system defaults, like ctrl-v for Paste with maps like qwerty and 
azerty. If on a russian keyboard layout Paste is usually done with the same
physical key (which has a M printed on it, right?), then a default shortcut 
for Copy with a russian map would be ctrl-m.

> and what to do with layouts, where chars entered with key 
> sequence?

There's no problem if you just drop the idea that the shortcut processing
is parallel to character processing. See below.

> You have urls for anything? ;)

Just about =P

> Now I understand. Dvorak keyboard also have qwerty subscripts, and you want to 
> switch between qwerty/dvorak for faster typing.

I think you should read again what I said in my last message (the one that 
confused you). As far as virtual key codes is concerned, a dvorak keyboard
and a qwerty keyboard are the same. It's only the map that differs (translation
from VK -> characters). 

Why not simply like this?
 
 
                +---------------+
                |Keyboard driver|
                +---------------+
                        |
                        |  virtual key codes
                        V
            +----------------------+
            + Character processing |
            +----------------------+
                        |
                        |  characters + modifier state
                        V
                  +-----------+
                  | shortcuts |
                  +-----------+
                        |
                        |  Actions
                        V
                    Application

As I said I haven't had time yet to think about how the application is
to receive the keys that are not bound to Actions. At the moment I have
more questions than answers, but I'll just list what I'm thinking about:

 - You would like to make sure it is easier for application developers 
   to use the system-wide shortcuts than to handle the keys themselves.
   If it's not easier, it's not going to be used.

 - What part of the software should be responsible for changing shortcuts?
   The application can have shortcuts that are not defined system-wide, so
   at least the application will have to change some of them.
   * Is consistency a reason to have the application manager all of it, 
     including the system shortcuts? or...
   * Should the application delegate all shortcut changes to the system?
   * If it is delegated, should it be invisible to the user or should the
     user know there is some central place to manage shortcuts?
   * If there's some central place, then how can that handle application
     specific shortcuts?

 - Should it be allowed to use a different shortcut for Paste in some
   application while still keeping the system-wide default for others?

 - How does an application know which keys will be free for use?
   In a previous message I said the application could send a set of
   Actions to the system and get back a list of supported actions 
   and associated shortcuts. The trouble with this is that the 
   application will have to figure out the keys that aren't used
   in the returned set and use those for any application specific
   shortcuts.

That's it for now.

Maurice.




More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved