-
Notifications
You must be signed in to change notification settings - Fork 333
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
fixed: selection and backspace are recently broken in CPTokenField #2894
base: narwhal
Are you sure you want to change the base?
Conversation
Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue. |
-#new |
Milestone: Someday. Labels: #needs-review, AppKit, regression. What's next? This issue is pending an architectural or implementation design decision and should be discussed or voted on. |
works with FF/chrome/safari, all tested on mac |
found something: clicking between two tokens does not give us a cursor as it should. |
+#needs-improvement |
Milestone: Someday. Labels: #needs-improvement, #needs-review, AppKit, regression. What's next?
|
i just tested an old version of cappuccino and it turns out that clicking between two tokens never worked. -#needs-improvement |
Milestone: Someday. Labels: #needs-review, AppKit, regression. What's next? This issue is pending an architectural or implementation design decision and should be discussed or voted on. |
@mrcarlberg would you prefer a runloop approach (not tested though)? [[CPRunLoop currentRunLoop] performSelector:@selector(makeFirstResponder:) target:[self window] argument:self order:0 modes:[CPDefaultRunLoopMode]] |
…is selected by: 1/ redirect all events to token to tokenfield using hitTest: subclassing.(and handle token selection there) 2/ Remove the didblur function on the input element. FIXES issue cappuccino#2894
The fix referenced above treats the root of the problem which is that the field should not resign at all its fr when a token element is selected. |
i think, that @aljungberg only fixed usability of the touch keyboard of the iPad with 26aab29, that is stopping it from reappearing all the time. I believe he did not test this fix with tokenfield. Therefore, i do not worry so much about the didBlur listener. |
I should have mentioned that in my patch I did remove the didBlur listener on the tokenfield input element, otherwise it sets again the fr on the tokenfield. But it may have another functionality that i did not figure yet by reading the code. |
-#needs-review |
Milestone: Someday. Labels: #needs-improvement, AppKit, regression. What's next? The code for this issue has problems with formatting or fails a capp_lint check, has bugs, or has non-optimal logic or algorithms. It should be improved upon. |
@cacaodev i advocate for fixing such a fundamental app-breaking high-level issue asap. we can try a better fix in the future. any objections against merging? |
this bug was introduced by commit 26aab29
26aab29 was meant to improve iOS experience but makes the tokenfield loose FR status prematurely.
this PR helps CPTokenField to regain FR status after bluring the inputfield by clicking on a token.
it secondly compensates for the backspace event not being propagated anymore in all circumstances
fixes #2795