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

Focusing: focus/blur #282

Merged
merged 34 commits into from
Aug 16, 2023
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
259707b
Update article.md
shahrzadJavadiKoushesh Aug 7, 2023
14d4945
Update article.md
shahrzadJavadiKoushesh Aug 7, 2023
c9f0f84
Update article.md
shahrzadJavadiKoushesh Aug 7, 2023
27c60a9
Update article.md
shahrzadJavadiKoushesh Aug 7, 2023
840c88d
Update article.md
shahrzadJavadiKoushesh Aug 7, 2023
dce6b0d
Update article.md
shahrzadJavadiKoushesh Aug 7, 2023
be3c4c4
Update article.md
shahrzadJavadiKoushesh Aug 7, 2023
6ca9e97
Update article.md
shahrzadJavadiKoushesh Aug 7, 2023
853c973
Update article.md
shahrzadJavadiKoushesh Aug 7, 2023
d0167c6
Update article.md
shahrzadJavadiKoushesh Aug 7, 2023
259fc00
Update article.md
shahrzadJavadiKoushesh Aug 9, 2023
cb1e4e0
Update article.md
shahrzadJavadiKoushesh Aug 9, 2023
1b3128d
Update article.md
shahrzadJavadiKoushesh Aug 10, 2023
2b34867
Update article.md
shahrzadJavadiKoushesh Aug 11, 2023
a074ed2
Update article.md
shahrzadJavadiKoushesh Aug 11, 2023
747efb0
Update article.md
shahrzadJavadiKoushesh Aug 11, 2023
6a6e6d9
Update article.md
shahrzadJavadiKoushesh Aug 11, 2023
52cd9fc
Update article.md
shahrzadJavadiKoushesh Aug 11, 2023
99e31a7
Update article.md
shahrzadJavadiKoushesh Aug 11, 2023
8c516c2
Update article.md
shahrzadJavadiKoushesh Aug 11, 2023
7daec88
Update article.md
shahrzadJavadiKoushesh Aug 11, 2023
36fd6b7
Update article.md
shahrzadJavadiKoushesh Aug 11, 2023
49a483a
Update solution.md
shahrzadJavadiKoushesh Aug 12, 2023
d76b628
Update solution.md
shahrzadJavadiKoushesh Aug 12, 2023
eba88f5
Update task.md
shahrzadJavadiKoushesh Aug 12, 2023
75466a1
Update solution.md
shahrzadJavadiKoushesh Aug 12, 2023
6bd26a3
Update task.md
shahrzadJavadiKoushesh Aug 12, 2023
8d7ed09
Update task.md
shahrzadJavadiKoushesh Aug 13, 2023
aa41f27
Update task.md
shahrzadJavadiKoushesh Aug 14, 2023
b68bdfb
Update solution.md
shahrzadJavadiKoushesh Aug 14, 2023
2ce6f28
Update task.md
shahrzadJavadiKoushesh Aug 14, 2023
85f1072
Update article.md
shahrzadJavadiKoushesh Aug 14, 2023
be54b43
Update article.md
shahrzadJavadiKoushesh Aug 16, 2023
70fdf91
fix: remove an additional line
mahdiHash Aug 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update article.md
  • Loading branch information
shahrzadJavadiKoushesh committed Aug 7, 2023
commit 14d49450bcacf13f6b97da8991ee6dc42a7931ce
6 changes: 3 additions & 3 deletions 2-ui/4-forms-controls/2-focus-blur/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

یک element وقتی focus دریافت می‌کند که کاربر روی آن click کند یا از کلید `key:Tab` در صفحه‌کلید استفاده کند. همچنین یک attribute به نام `autofocus` در HTML وجود دارد که وقتی صفحه load می‌شود، به صورت پیش‌فرض focus را روی یک element می‌گذارد و روش‌های دیگری برای دریافت focus.
mahdiHash marked this conversation as resolved.
Show resolved Hide resolved

قرار دادن focus روی یک element به طور کلی یعنی: "آماده شدن برای دریافت داده در اینجا"، پس این وقتی است که می‌توانیم code را برای مقداردهی اولیه برای عملکرد مورد نیاز اجرا کنیم.
قرار دادن focus روی یک element به طور کلی یعنی: "آماده شدن برای دریافت داده در اینجا"، پس این زمانی است که می‌توانیم code را برای مقداردهی اولیه برای عملکرد مورد نیاز اجرا کنیم.
mahdiHash marked this conversation as resolved.
Show resolved Hide resolved

The moment of losing the focus ("blur") can be even more important. That's when a user clicks somewhere else or presses `key:Tab` to go to the next form field, or there are other means as well.
لحظه‌ای که focus از دست می‌رود ("blur") حتی می‌تواند مهم‌تر باشد. آن وقتی است که کاربر روی جایی دیگر click می‌کند یا `key:Tab` را فشار می‌دهد تا به form بعدی برود یا راه‌های دیگری نیز وجود دارد.

Losing the focus generally means: "the data has been entered", so we can run the code to check it or even to save it to the server and so on.
از دست دادن داده به طور کلی یعنی "داده وارد شده است"، پس ما می‌توانیم کد را اجرا کنیم تا آن را چک کنیم یا حتی آن را در server ذخیره کنیم و چیزهای دیگر.

There are important peculiarities when working with focus events. We'll do the best to cover them further on.

Expand Down