Skip to content

Publish modifier flags from event #148

Description

@eirnym

Event should expose modifier flags as NSUInteger or parsed.

Parsed version could be a bitmask wrapper with custom methods like this:

struct ModifierFlags(pub NSUInteger);

impl ModifierFlags {
    fn raw(&self) -> NSUInteger { self.0 }
	fn capsLock(&self) -> { self.0 & CAPS_LOCK_BIT }
    // ...
}

documentation source

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions