-
Notifications
You must be signed in to change notification settings - Fork 148
WebGL viewer: fix help-menu shortcut display & position (+ propose in-browser ROI drawing) #642
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1242,16 +1242,16 @@ var mriview = (function(module) { | |||||||||||||||||
| new_html += '<tr><td style="text-align: center;">' | ||||||||||||||||||
| if ('modKeys' in list[i][name]){ | ||||||||||||||||||
| let modKeys = list[i][name]['modKeys']; | ||||||||||||||||||
| modKeys = modKeys.map((modKey) => modKey.substring(0, modKey.length - 3)); | ||||||||||||||||||
| modKeys = modKeys.map((modKey) => modKey.charAt(0).toUpperCase() + modKey.substring(1, modKey.length - 3)); | ||||||||||||||||||
| modKeys = modKeys.join(' + '); | ||||||||||||||||||
|
Comment on lines
1244
to
1246
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using string manipulation (
Suggested change
|
||||||||||||||||||
| new_html += modKeys + ' + '; | ||||||||||||||||||
| } | ||||||||||||||||||
| new_html += list[i][name]['key'].toUpperCase() + '</td><td>' + diplay_name + '</td></tr>' | ||||||||||||||||||
| new_html += list[i][name]['key'] + '</td><td>' + diplay_name + '</td></tr>' | ||||||||||||||||||
| } | ||||||||||||||||||
| if ('wheel' in list[i][name]){ | ||||||||||||||||||
| new_html += '<tr><td style="text-align: center;">' | ||||||||||||||||||
| var modKeys = list[i][name]['modKeys'] | ||||||||||||||||||
| modKeys = modKeys.map((modKey) => modKey.substring(0, modKey.length - 3)) | ||||||||||||||||||
| modKeys = modKeys.map((modKey) => modKey.charAt(0).toUpperCase() + modKey.substring(1, modKey.length - 3)) | ||||||||||||||||||
| modKeys = modKeys.join(' + ') | ||||||||||||||||||
| new_html += modKeys + ' + wheel </td><td>' + diplay_name + '</td></tr>' | ||||||||||||||||||
|
Comment on lines
1253
to
1256
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If var modKeys = list[i][name]['modKeys'] || [];
const modMap = { shiftKey: 'Shift', ctrlKey: 'Ctrl', altKey: 'Alt', metaKey: 'Meta' };
modKeys = modKeys.map((modKey) => modMap[modKey] || modKey);
var modStr = modKeys.join(' + ');
new_html += (modStr ? modStr + ' + ' : '') + 'wheel </td><td>' + diplay_name + '</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.
For design consistency across the application, please use
Helvetica Neue, sans-serifto match the font family defined for thebodyelement on line 3.