Skip to content

Conversation

sh1nj1
Copy link
Contributor

@sh1nj1 sh1nj1 commented Apr 29, 2025

What is this PR for?

This PR fixes an issue that prevents entering shortcut characters in input fields.
When using a dynamic input field, characters like 'l', 'b', etc., are treated as shortcuts and cannot be entered.
This fix prevents shortcut actions from being triggered when the focused element is an input field.

What type of PR is it?

Bug Fix

Todos

What is the Jira issue?

How should this be tested?

  • Create new notebook using dynamic input field
  • Enter 'l' character and see if it is not working as shortcut(toggling line numbers)

Screenshots (if appropriate)

Questions:

  • Does the license files need to update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

@ParkGyeongTae
Copy link
Contributor

ParkGyeongTae commented May 10, 2025

LGTM.
I followed your JIRA issue guideline and was able to reproduce the same behavior.
(docker run -p 8080:8080 --rm --name zeppelin apache/zeppelin:0.12.0)
When typing the 'l' character in the input field, the character is not entered, and the line number toggle is activated/deactivated instead.

  • Screenshot before typing 'l'
image
  • Screenshot after typing 'l'
image

Copy link
Contributor

@ParkGyeongTae ParkGyeongTae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Reamer
Copy link
Contributor

Reamer commented Jun 3, 2025

@sh1nj1 Can you answer the question in Jira or should I transfer it to GitHub?

@Reamer Reamer self-assigned this Jun 3, 2025
@sh1nj1
Copy link
Contributor Author

sh1nj1 commented Jun 5, 2025

I answered, I think it is better to fix first.

@Reamer
Copy link
Contributor

Reamer commented Jun 6, 2025

@sh1nj1
Can you perform a rebase on the master? I hope that the CI process can then be started.

@sh1nj1 sh1nj1 force-pushed the fix/shortcut-in-text-field branch from 45ec7bf to 8b1745d Compare June 9, 2025 05:36
@sh1nj1
Copy link
Contributor Author

sh1nj1 commented Jun 10, 2025

@Reamer rebased

@Reamer Reamer merged commit 94ae845 into apache:master Jun 10, 2025
16 of 17 checks passed
asf-gitbox-commits pushed a commit that referenced this pull request Jun 10, 2025
### What is this PR for?

This PR fixes an issue that prevents entering shortcut characters in input fields.
When using a dynamic input field, characters like 'l', 'b', etc., are treated as shortcuts and cannot be entered.
This fix prevents shortcut actions from being triggered when the focused element is an input field.

### What type of PR is it?

Bug Fix

### Todos

### What is the Jira issue?

* https://issues.apache.org/jira/browse/ZEPPELIN-6185

### How should this be tested?

* Create new notebook using dynamic input field
* Enter 'l' character and see if it is not working as shortcut(toggling line numbers)

### Screenshots (if appropriate)

### Questions:

* Does the license files need to update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Closes #4925 from sh1nj1/fix/shortcut-in-text-field.

Signed-off-by: Philipp Dallig <philipp.dallig@gmail.com>
(cherry picked from commit 94ae845)
Signed-off-by: Philipp Dallig <philipp.dallig@gmail.com>
@sh1nj1 sh1nj1 deleted the fix/shortcut-in-text-field branch June 10, 2025 06:44
@Reamer
Copy link
Contributor

Reamer commented Jun 10, 2025

@sh1nj1 Thanks for your contribution.

I have created the following ticket to standardize the shortcuts.
https://issues.apache.org/jira/browse/ZEPPELIN-6197

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