-
Notifications
You must be signed in to change notification settings - Fork 119
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
Select all patch entities or input contents from menu item #1505
Conversation
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.
LGTM
@@ -575,7 +575,19 @@ class App extends client.App { | |||
items.cut, | |||
items.copy, | |||
items.paste, | |||
items.selectall, | |||
onClick(items.selectall, () => { |
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.
Too complex function for the purely structural code span. Suggest extracting it to a method
@@ -575,7 +575,19 @@ class App extends client.App { | |||
items.cut, | |||
items.copy, | |||
items.paste, | |||
items.selectall, | |||
onClick(items.selectall, () => { | |||
// We can't use `role: 'selectall'` here, cause it ignores `onClick`. |
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.
📜 because
87e640c
to
ca25af7
Compare
@nkrkv check it out, please |
50de875
to
1d44f5f
Compare
@nkrkv check it out, please |
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 code looks excellent now 👍
However, it does not work for me 😞 On the desktop version, Ctrl+A selects contents of Quick Help whatever I click. The same for hitting Edit → Select All
1d44f5f
to
41ddd3c
Compare
@nkrkv Oops. My bad. |
e4f7076
to
3478f7f
Compare
@nkrkv finally, it has to work. |
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.
Whew 😌 Now it works on my platform (tested both browser and electron). Please, fix wording, and merge
/** | ||
* We have to handle some hotkeys, because: | ||
* - Browser IDE should prevent default event handling | ||
* - Electron IDE could not handle correct some hotkeys. |
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.
📜 Electron IDE cannot handle some hotkeys correctly
3478f7f
to
1994aa5
Compare
…ects all entities on the Patch or all in the input if it focused
1994aa5
to
9622f0d
Compare
It fixes #1497.
Also, I've added "Select All" menu item into browser version of the IDE, that selects all entities on the Patch.