aboutsummaryrefslogtreecommitdiffstats
path: root/pages/develop/guides/c/ui/focus.md.txt
diff options
context:
space:
mode:
Diffstat (limited to 'pages/develop/guides/c/ui/focus.md.txt')
-rw-r--r--pages/develop/guides/c/ui/focus.md.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/pages/develop/guides/c/ui/focus.md.txt b/pages/develop/guides/c/ui/focus.md.txt
index 9d77bf26a..11de63288 100644
--- a/pages/develop/guides/c/ui/focus.md.txt
+++ b/pages/develop/guides/c/ui/focus.md.txt
@@ -20,7 +20,7 @@ EFL handles the focus of your application in a way which works in most situation
Graphical User Interfaces (*GUI*s) are typically made of widgets arranged on a window. Some widgets are meant to convey information to the user, like labels or progress bars. Some are meant to receive information from the user such as text boxes or sliders and some are meant to execute commands, like buttons.
-To act on a widget, you first need to *activate* it using a *mouse*: the widget under the mouse pointer is activated when you click on it. Similarly,, when you're using a *touch screen*, the widget under your finger is activated when you press it.
+To act on a widget, you first need to *activate* it using a *mouse*: the widget under the mouse pointer is activated when you click on it. Similarly, when you're using a *touch screen*, the widget under your finger is activated when you press it.
Things are not so straightforward when you use a *keyboard*. To begin with, a keyboard requires a widget to be the *selected* widget. You also have keys (typically the <kbd>Tab</kbd> or the Cursor keys) that allow you to change the selected widget and keys (typically <kbd>Enter</kbd> or the <kbd>Space</kbd>) to activate it.
@@ -42,11 +42,11 @@ The bottom line is that you mus **add widgets to your GUI in the same order in w
## Setting the Focus on a Widget ##
-Sometimes you maay want to bypass EFL's default behavior and programmatically set the focus to a particular widget, for example, on an [OK] button once enough information has been added to a form.
+Sometimes you may want to bypass EFL's default behavior and programmatically set the focus to a particular widget, for example, on an [OK] button once enough information has been added to a form.
To achieve this use the ``Efl.Ui.Focus.Util`` class. It has a single method called ``efl_ui_focus_util_focus()`` which receives as a parameter the widget to which you want to move the focus.
-When using this method the widget currently selected will lose the focus and the one you passed will gain the focus. During thi process, all focus-related events will be emitted (see the next section).
+When using this method the widget currently selected will lose the focus and the one you passed will gain the focus. During this process, all focus-related events will be emitted (see the next section).
This method can only be used on widgets implementing the ``Efl.Ui.Focus.User`` and ``Efl.Ui.Focus.Object`` interfaces but most widgets inherit from ``Elm.Widget`` which already does this, so you don't have to worry.