module Eagle::Focus

Overview

Which control currently has keyboard focus. There is only one at a time.

Defined in:

eagle/ui/control.cr

Class Method Summary

Class Method Detail

def self.current : Control | Nil #

The focused control, or nil.


def self.current=(c : Control | Nil) #

Moves focus. Prefer Control#grab_focus.