Page MenuHomePhabricator

Efl.Input.Key
Closed, ResolvedPublic

Description

class @beta Efl.Input.Key extends Efl.Object implements Efl.Input.Event, Efl.Input.State
{
   [[Represents a single key event from a keyboard or similar device.
   ]]
   ...
}

Related Objects

StatusAssignedTask
ResolvedNone
ResolvedNone
ResolvedNone
Resolvedbu5hm4n
ResolvedNone
ResolvedNone
InvalidNone
InvalidNone
segfaultxavi triaged this task as TODO priority.
zmike moved this task from Backlog to Evaluating on the efl: api board.May 16 2019, 10:53 AM
zmike added a comment.Jun 12 2019, 7:17 AM

I think compose should maybe be compose_string, but otherwise this seems okay?

zmike moved this task from Evaluating to Trivial on the efl: api board.Jun 12 2019, 7:17 AM

I see nothing wrong, but I cannot be sure because the docs are absolutely horrible. What is the difference between key and key_name? What is this composition? I would love to see examples.

zmike added a comment.Jun 13 2019, 6:16 AM

This is basically copied out of X11 terminology since that's what EFL was originally written around. key is the name of the key that was pressed (determined after processing) while key_name is the raw name of the key that was pressed. compose is compose keys...you know...where you press your compose key and get those funny little marks that non-english languages need.

Sorry, I am not familiar with X11 so I do not see the difference between a key name and a raw key name... example?

I know that I need to press two keys to get an ó: first ´ and then o. What events does this sequence generate in EFL? and what is the string and the compose_string for these events?

Sorry, I am not familiar with X11 so I do not see the difference between a key name and a raw key name... example?

Um...I forget off the top of my head but I think it's like for keyboard remapping where you might e.g., press caps lock but it generates control.

! In T7964#137337, @segfaultxavi wrote:

I know that I need to press two keys to get an ó: first ´ and then o. What events does this sequence generate in EFL? and what is the string and the compose_string for these events?

Would have to check, as a member of the superior language club I don't need to use compose key myself. Should be easy to set a breakpoint on something that processes key events and look.

Well, OK. This seems general enough (by the sheer amount of properties it has) to future-proof us for the time being. It only needs docs.

P.S. I LOL in the general direction of your context-dependent, incredibly ambiguous, unpronounceable unless you heard it first, superior language.

zmike added a comment.Jun 18 2019, 9:17 AM

You're just mad because we have all the best memes.

That much I concede.

bu5hm4n moved this task from Trivial to Stabilized on the efl: api board.Jul 10 2019, 8:19 AM