Which event should be used for key press handling key-down/key-up? It is sure that in both case the program will run successfully. But which one will be more user-friendly?
When should I use keydown and keyup?
5.6k Views Asked by Nafeez Abrar At
1
There are 1 best solutions below
Related Questions in KEYEVENT
- combine KeyCode pressed and modifiers to get final KeyCode
- Check if "shortcut" key is pressed on action event
- ag-grid how can I disable spacebar keyevent
- Scenebuilder onKeyPressed not calling method in controller
- How to completely hide the keyboard/infrared scanner/keyevent
- Is there a way to control the Home key and the keys in the Phone Window Manager in AndroidTv?
- Android KeyEvent down and up triggered simultaneously
- Why are my KeyCode/KeyEvent functions returning either as an invalid character or "UNDEFINDED"? (JavaFX)
- Backspace key does not trigger any event in a virtual keyboard on an embedded device
- Is there any adb command or a way to which we can refresh the page in android?
- No key / motion events triggered from connected game controller in Android Activity
- Get android system key repeat time
- Rotating an Animated Image on Key
- Ctrl+Shift+End android input keyevent
- Flutter: Inconsistent KeyEvent Behavior with Barcode Scanners on Different Android Devices
Related Questions in USER-FRIENDLY
- How to make Find in File dialog appear floating in front not attached in the corner in Visual Studio
- Create User-Manipulable Inputs
- Userfriendly possibillity to select an icon from large iconset
- Letters group ordering in Games Howell post hoc in R
- Language to Create User-Friendly Web Applications
- Enter a Csv-File through a Pop-up Window in R
- Make user-friendly URL in Codeigniter with multi-language support
- Access: filter query results from a user-friendly form before loading
- Is there a way to use a 'friendy' name for this class/interface?
- Providing NetworkException as user-friendly Message in layered architecture
- Not able to make my website mobile friendly, even when it looks ok on mobile, what I'm missing?
- rewrite url is not working in core php localhost project
- user friendly display of numbers - specifically size measurement with units
- User-friendly way to present audit log sql
- User friendly URI's with Laravel?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It depends on you. There is no such best practice. Both are used as per the need of your program and as per the convenience of the user.
keyup Fires when the user releases a key, after the default action of that key has been performed.
keydown Fires when the user depresses a key. It repeats while the user keeps the key depressed.
Check out this page describing the differences.