{"id":1168,"date":"2017-12-04T04:25:37","date_gmt":"2017-12-04T04:25:37","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1168"},"modified":"2020-01-09T09:34:29","modified_gmt":"2020-01-09T09:34:29","slug":"keyboard-enter-key-press-does-not-validate-the-condition","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/keyboard-enter-key-press-does-not-validate-the-condition\/","title":{"rendered":"Keyboard Enter key press does not validate the condition"},"content":{"rendered":"<p><strong>created the topic: Keyboard Enter key press does not validate the condition<\/strong><br \/>\nI have added a condition INSTALLDIR <> WindowsVolume to the &#8220;Next&#8221; button of the InstallDir dialog to prevent installation to the windows root drive.<br \/>\nThis condition gets validated and next button gets disabled if the condition is true when the user clicks the button.<br \/>\nBut if the user enters the windows root folder and press enter, it directly navigates the user to the ready to install screen without validating the condition<\/p>\n<p>I have read somewhere that the property gets validated only on a control click event. But how do I handle this situation?? when i proceed with the installation, everything gets installed on the root drive.<\/p>\n<p>Any ideas??<\/p>\n<p><strong>msiexpert replied the topic: Re: Keyboard Enter key press does not validate the condition<\/strong><br \/>\nProperties like WindowsVolume end with a \\ and I&#8217;d guess that the user input doesn&#8217;t.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>created the topic: Keyboard Enter key press does not validate the condition I have added a condition INSTALLDIR WindowsVolume to the &#8220;Next&#8221; button of the InstallDir dialog to prevent installation&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[49],"tags":[287],"class_list":["post-1168","post","type-post","status-publish","format-standard","hentry","category-general","tag-validate"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=1168"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1168\/revisions"}],"predecessor-version":[{"id":1169,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1168\/revisions\/1169"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}