{"id":411,"date":"2012-01-09T17:56:21","date_gmt":"2012-01-09T17:56:21","guid":{"rendered":"http:\/\/devnot.wordpress.com\/?p=411"},"modified":"2012-01-09T17:56:21","modified_gmt":"2012-01-09T17:56:21","slug":"allow-a-usercontrol-to-handle-arrow-keys","status":"publish","type":"post","link":"https:\/\/thomas-jansen.eu\/?p=411","title":{"rendered":"Allow a UserControl to handle arrow keys"},"content":{"rendered":"<p>By default the arrow keys are processed by the form, to use them yourself override the following method.<\/p>\n<pre>\n protected override bool IsInputKey(Keys keyData)\n        {\n            switch (keyData)\n            {\n                case Keys.Up:\n                case Keys.Down:\n                case Keys.Left:\n                case Keys.Right:\n                    return (true);\n             }\n            return base.IsInputKey(keyData);\n        }\n<\/pre>\n<pre><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>By default the arrow keys are processed by the form, to use them yourself override the following method. protected override bool IsInputKey(Keys keyData) { switch (keyData) { case Keys.Up: case Keys.Down: case Keys.Left: case Keys.Right: return (true); } return base.IsInputKey(keyData); }<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-411","post","type-post","status-publish","format-standard","hentry","category-c"],"_links":{"self":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts\/411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=411"}],"version-history":[{"count":0,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts\/411\/revisions"}],"wp:attachment":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}