Skip to content

Instantly share code, notes, and snippets.

@arantius
Created February 28, 2011 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arantius/847923 to your computer and use it in GitHub Desktop.
Save arantius/847923 to your computer and use it in GitHub Desktop.
angular <select> keyboard test case
<!DOCTYPE html>
<html xmlns:ng="http://angularjs.org">
<head>
<script type="text/javascript" ng:autobind src="http://code.angularjs.org/0.9.10/angular-0.9.10.js"></script>
<script type="text/javascript">
function NullCtrl() {
this.trigger = 'alpha';
}
</script>
</head>
<body ng:controller="NullCtrl">
<input type="text" value="focus me, hit tab, then down" size="60">
<select name="trigger">
<option>alpha</option>
<option>beta</option>
<option>gamma</option>
<option>delta</option>
</select>
<pre>trigger: {{trigger}}</pre>
<p>The trigger value will not change until you blur the select box.</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment