See hs.keycodes.layouts.Įxtensions/keycodes/libkeycodes.m line 438 Keyboard layouts which are not part of an input method are not included in this table.A table containing a list of input methods enabled in System Preferences.sourceID - an optional boolean, default false, indicating whether the keyboard input method names should be returned (false) or their source IDs (true).Gets all of the enabled input methods that the keyboard input source can be switched to See hs.thods.Įxtensions/keycodes/libkeycodes.m line 404 Keyboard layouts which are part of input methods are not included. Only those layouts which can be explicitly switched to will be included in the table.A table containing a list of keyboard layouts enabled in System Preferences.sourceID - an optional boolean, default false, indicating whether the keyboard layout names should be returned (false) or their source IDs (true).Gets all of the enabled keyboard layouts that the keyboard input source can be switched to Setting this will un-set functions previously registered by this function.This may be helpful for rebinding your hotkeys to appropriate keys in the new layout.No arguments are supplied to the function. fn - A function that will be called when the input source changes.Sets the function to be called when your input source (i.e. Not all layouts/methods have icons, so you should assume this will return nil at some pointĮxtensions/keycodes/libkeycodes.m line 566.An hs.image object, or nil if no image could be found.sourceName - A string containing the name of an input method or keyboard layout. Gets an hs.image object for a given keyboard layout or input method Hs.keycodes.iconForLayoutOrMethod(sourceName) -> hs.image object If no parameter is provided, returns a string containing the source id for the current keyboard layout or input method if a parameter is provided, returns true or false specifying whether or not the input source was able to be changed.Įxtensions/keycodes/libkeycodes.m line 334.sourceID - an optional string specifying the input source to set for keyboard input.Get or set the source id for the keyboard input source Hs.keycodes.currentSourceID() -> string | boolean An hs.image object containing the icon, if availableĮxtensions/keycodes/libkeycodes.m line 387Įxtensions/keycodes/libkeycodes.m line 472.Gets the icon of the current keyboard layout Hs.keycodes.currentLayoutIcon() -> hs.image object
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |