What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-04 11:05:22
How to find out what character key is pressed?#key#keyCode#code
<table> <tr><td>Key:</td><td id="key"></td></tr> <tr><td>Key Code:</td><td id="keyCode"></td></tr> <tr><td>Event Code:</td><td id="... Add solution -
C# 2022-02-12 04:45:13
first person camera controller unity
//Fixed the issues with the previous controller using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraLook : MonoBehaviour { public float minX = -60f; public float maxX = 60f; public float sensitivity; pub... Add solution -
TypeScript 2022-02-03 00:25:56
how to restrict alphabets in input field in angular
phoneKeyDown(e){ const keyCode = e.keyCode; if (( (e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) && e.keyCode !=8) { e.preventDefault(); } } // IN HTML <ion-inpu... Add solution -
Javascript 2022-02-02 19:31:28
hit enter button lick in js
<form> <input id="myInput" placeholder="Some text.." value=""> <input type="submit" id="myBtn" value="Submit"> </form> <script> var input = document.getElem... Add solution -