Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow ESC key to "cancel" editing an input #174

Merged
merged 3 commits into from
Apr 2, 2019
Merged

Conversation

Lynesth
Copy link
Collaborator

@Lynesth Lynesth commented Apr 2, 2019

It will simply return the initial value (empty string or the placeholder text) when the user presses the ESC key, even if the text was modified.

@Lynesth
Copy link
Collaborator Author

Lynesth commented Apr 2, 2019

This will need php-school/terminal#10 in order to work.

Lynesth and others added 2 commits April 2, 2019 10:34
It will simply return the initial value (empty string or the placeholder text) when the user presses the ESC key, even if the text was modified.
@codecov-io
Copy link

codecov-io commented Apr 2, 2019

Codecov Report

Merging #174 into master will decrease coverage by 0.14%.
The diff coverage is 50%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #174      +/-   ##
============================================
- Coverage     97.41%   97.26%   -0.15%     
- Complexity      422      423       +1     
============================================
  Files            25       25              
  Lines          1313     1317       +4     
============================================
+ Hits           1279     1281       +2     
- Misses           34       36       +2
Impacted Files Coverage Δ Complexity Δ
src/CliMenu.php 96.88% <ø> (ø) 98 <0> (ø) ⬇️
src/Input/InputIO.php 96.94% <50%> (-1.48%) 25 <0> (+1)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aff5729...975b101. Read the comment docs.

@AydinHassan AydinHassan merged commit 83fbce5 into master Apr 2, 2019
@AydinHassan
Copy link
Member

Thanks!

@AydinHassan AydinHassan deleted the Lynesth-patch-1 branch April 2, 2019 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants