{"id":15594207,"url":"https://github.com/orta/orsimulatorkeyboardaccessor","last_synced_at":"2025-08-15T22:39:06.288Z","repository":{"id":7974181,"uuid":"9375661","full_name":"orta/ORSimulatorKeyboardAccessor","owner":"orta","description":"Use your keyboard in the iOS simulator with a blocks based API","archived":false,"fork":false,"pushed_at":"2017-11-23T14:43:43.000Z","size":222,"stargazers_count":73,"open_issues_count":2,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-04T12:42:56.790Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orta.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-11T17:04:50.000Z","updated_at":"2025-05-25T11:52:14.000Z","dependencies_parsed_at":"2022-09-16T09:02:42.606Z","dependency_job_id":null,"html_url":"https://github.com/orta/ORSimulatorKeyboardAccessor","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/orta/ORSimulatorKeyboardAccessor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orta%2FORSimulatorKeyboardAccessor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orta%2FORSimulatorKeyboardAccessor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orta%2FORSimulatorKeyboardAccessor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orta%2FORSimulatorKeyboardAccessor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orta","download_url":"https://codeload.github.com/orta/ORSimulatorKeyboardAccessor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orta%2FORSimulatorKeyboardAccessor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270639344,"owners_count":24620718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T00:35:01.331Z","updated_at":"2025-08-15T22:39:06.259Z","avatar_url":"https://github.com/orta.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"##ORSimulatorKeyboardAccessor\n\nUse your keyboard in the iOS simulator with a pleasant API. \n\nSet this to be the default UIApplication class in your main.m - when you use\nyour app within the simulator you will have the ability to perform actions\nwhen you use the keyboard without the need for a textfield.\n\nTo use a custom UIApplication subclass you need to change the third argument\nto the main method to be this `ORKeyboardReactingApplication`. You can reliably leave that in for release as any non-simulator builds will only compile to an empty UIApplication subclass.\n\n``` objc\n int main(int argc, char *argv[]) {\n    @autoreleasepool {\n        return UIApplicationMain(argc, argv,\n            NSStringFromClass([ORKeyboardReactingApplication class]),\n            NSStringFromClass([ORAppDelegate class]));\n    }\n }\n```\n\nThen in your application:\n\n```objc\n  // Block syntax\n  [ORKeyboardReactingApplication registerForCallbackOnKeyDown:@\"a\" :^{\n      NSLog(@\"Hey there 'a' - how're you doing?\");\n  }];\n  \n  // Target-Action syntax  \n  [ORKeyboardReactingApplication registerForSelectorOnKeyDown:@\"d\" target:self action:@selector(switchDColours)];\n```\n\nAnd you're done.\n\n####Todo list\nWould love PRs with these features\n\n* Find a way to do key up instead of on key down.\n* Allow the API to have repeating vs non-repeating calls\n* Allow a range of inputs like 0-9\n* Using shift = capital version\n* Support for command / alt","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forta%2Forsimulatorkeyboardaccessor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forta%2Forsimulatorkeyboardaccessor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forta%2Forsimulatorkeyboardaccessor/lists"}