A
A
Alex2019-08-08 13:47:30
JavaScript
Alex, 2019-08-08 13:47:30

What modifier to choose for clicking on the button?

Possibly a stupid question, though.
I have a "Load More" button that loads the next 10 comments on the page (10 are loaded immediately, and another 10 each time the user clicks the button).
And so I implemented the algorithm: if you click on "Load More" while holding Shift, then all comments are gradually loaded in general (in the same way for 10, but the user no longer needs to click "Load More" every time).
The essence of the question: what modifier key to choose for this purpose? Shift? ctrl? alt? Of course I'll add a hint about this, but I want this behavior to feel jumpy and intuitive. What modifier is usually used for similar purposes on the web or in application software? Like when there is a normal click and, as it were, a "reinforced" click:

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Deeepi, 2019-08-08
@Deeepi

If the user clicks Load More for the 3rd time, then you can remove this button and display comments as soon as the user has scrolled to the bottom

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question