Re: 12.10 key shortcuts

Eirik Byrkjeflot Anonsen <[email protected]> Fri, 09 Nov 2012 07:30:59 +0100
Newsgroups gmane.comp.web.opera.linux
Message-ID <[email protected]>
John Harrigan <[email protected]> writes:

> A couple of my shortcuts stopped working between 12.02 and 12.10.
>
> I use "- alt" to open up a panel and "= alt" to open up a new tab.  These
> combos don't do anything any more in 12.10.  If I modify the combos to use
> ctrl instead of alt they work as expected.  The "p alt" combo continues to
> work (preferences).
>
> Do I need to change my syntax for "- alt" and "= alt" or should I file
> a bug report?

We "fixed" keyboard handling heavily in 12.10.  All told, many things
(webpages in particular) should be working better now, but the whole
logic of how the keyboard should work is a really nasty mess.

I think I know why the alt combinations doesn't work any more, and I
doubt we'll fix that as it is likely to break other things.  I believe
it should be possible to use a different syntax though.

The problem is that "- alt" means "the keypress that produces the '-'
character, with the 'alt' modifier pressed."  It's just that once you
press the "alt" modifier, that key no longer produces the "-" character.

It works with ctrl because we cheat.  We assume that nobody will need
the actual character produced when holding ctrl and use the unmodified
character instead.  But that assumption is wrong for the alt modifier.

So instead of the character you'll need to use the symbolic name for the
key.  For "-" I think you can use "Subtract".  For "=" it depends on
your keyboard layout.  For standard us keyboard, I think it is "Add"
(which is rather odd.  I thought the symbolic names were based on the us
keyboard.)

Unfortunately, I don't know how to figure out the symbolic names short
of reading our source code.

eirik
--
Opera-Linux: https://list.opera.com/mailman/listinfo/opera-linux
More lists: https://list.opera.com/mailman/listinfo/
Unsubscribe: mailto:[email protected]?subject=unsubscribe