-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Keyboard Navigation #3193
base: master
Are you sure you want to change the base?
Keyboard Navigation #3193
Conversation
Can one of the admins verify this patch? |
appinventor/appengine/src/com/google/appinventor/client/OdeMessages.java
Show resolved
Hide resolved
appinventor/appengine/src/com/google/appinventor/client/editor/youngandroid/DesignToolbar.java
Show resolved
Hide resolved
...ne/src/com/google/appinventor/client/editor/youngandroid/actions/RefreshCompanionAction.java
Outdated
Show resolved
Hide resolved
...tor/appengine/src/com/google/appinventor/client/editor/youngandroid/actions/ResetAction.java
Outdated
Show resolved
Hide resolved
.../src/com/google/appinventor/client/editor/youngandroid/palette/YoungAndroidPalettePanel.java
Outdated
Show resolved
Hide resolved
.../src/com/google/appinventor/client/editor/youngandroid/palette/YoungAndroidPalettePanel.java
Outdated
Show resolved
Hide resolved
.../src/com/google/appinventor/client/editor/youngandroid/palette/YoungAndroidPalettePanel.java
Show resolved
Hide resolved
.../src/com/google/appinventor/client/editor/youngandroid/palette/YoungAndroidPalettePanel.java
Outdated
Show resolved
Hide resolved
appinventor/appengine/src/com/google/appinventor/client/explorer/SourceStructureExplorer.java
Show resolved
Hide resolved
Issues from testing Sep 4, using Mac Firefox:
|
appinventor/appengine/src/com/google/appinventor/client/actions/ShowShortcutsAction.java
Show resolved
Hide resolved
@@ -939,6 +945,88 @@ public void onResetDatabase() { | |||
} | |||
} | |||
|
|||
|
|||
private void registerKeyDownListeners () { | |||
RootPanel.get().addDomHandler(new KeyDownHandler() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to add some comments here summarizing what you're doing with the KeyDownHandler, e.g. what keystrokes you're checking for on what parts of the UI. It's easy for that to get lost in the wall of code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a few updates to line up with our ui refactor.
appinventor/appengine/src/com/google/appinventor/client/actions/ShowShortcutsAction.java
Show resolved
Hide resolved
appinventor/appengine/src/com/google/appinventor/client/actions/ShowShortcutsAction.java
Outdated
Show resolved
Hide resolved
db.hide(); | ||
private native void shortcutKeyHandler(ShowShortcutsAction action) /*-{ | ||
$wnd.document.addEventListener("keydown", function (event) { | ||
if (event.altKey && event.key === "?") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change seems to have broken Alt-? shortcut for Macs. I'm pretty sure it worked before. I may turn up more information in further testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More insight into the Alt - ? on Mac: It looks like if I use either Alt-/ or Alt-shift-/ (i.e. ?), the / is the only key that is being taken seriously. My focus is moving to the component search bar rather than opening the help popup.
Is there any chance that there are circumstances where / is being checked before this check for Alt-/ or Alt-shift-/
(I will avoid adding a question mark to my sentence because this comment is confusing enough.)
appinventor/appengine/src/com/google/appinventor/client/explorer/SourceStructureExplorer.java
Outdated
Show resolved
Hide resolved
appinventor/appengine/src/com/google/appinventor/client/OdeMessages.java
Show resolved
Hide resolved
appinventor/appengine/src/com/google/appinventor/client/actions/ShowShortcutsAction.java
Show resolved
Hide resolved
@@ -834,6 +843,10 @@ div.StatusPanel { | |||
background-color: #d2e0a6; | |||
} | |||
|
|||
.gwt-Tree-focused { | |||
outline: solid 2px #000000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be changed to a color variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very close. I may be able to get it on our test server before the holidays. I can't quite promise that yet, but hopefully.
appinventor/appengine/src/com/google/appinventor/client/OdeMessages.java
Show resolved
Hide resolved
appinventor/appengine/src/com/google/appinventor/client/OdeMessages.java
Outdated
Show resolved
Hide resolved
appinventor/appengine/src/com/google/appinventor/client/OdeMessages.java
Show resolved
Hide resolved
"<tr><td>Rename Component</td><td>Alt + N</td></tr>" + | ||
"<tr><td>Reset Connection</td><td>Alt + Shift + R</td></tr>" + | ||
"<tr><td>Refresh Companion Screen</td><td>Alt + R</td></tr>" + | ||
"<tr><td>Open/Close Backpack</td><td>Alt + B</td></tr>" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alt(Opt)-B also does not seem to work for me on either Firefox or Chrome. I'm still not sure what makes these key combinations distinctive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Alt + B shortcut was implemented in a way so that it works only when the user clicks on the blockly workspace to make it active, this was done because if the shortcut was pressed in the designer view then the backpack flyout opens but in a weird way where the blocks are outside of the flyout.
This PR improves the keyboard accessibility of the App Inventor by introducing the following features:
Keyboard Shortcuts