-
Notifications
You must be signed in to change notification settings - Fork 307
Implement cmd+w to close tab instead of window #83
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
Conversation
| store.dispatch(setConsoleVisibility(!state.ui.consoleVisible)) | ||
| }) | ||
|
|
||
| ipc.on(SHOULD_CLOSE_TAB, () => { |
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.
Everything else looks good. My only request is to move this logic into an action. Now that it's being used in two places... probably should've done this earlier anyway.
I'm thinking you can put it in web/compositeFileActions.js ... the block of logic looks and behaves similarly to the openFile() function in there.
TabbedEditor.jsx and ipcActionEmitter.js can then dispatch the high-level action rather than duplicating functionality.
|
Updated in the new commits. The logic can be found as closeTabWindow in web/compositeFileActions.js. |
* Implement cmd+w to close tab instead of window * move close tab to compositeFileActions
* Update README Update download link in README * Update json gem dependency version to support newer rubies See: ruby/json#229 * new secrets for travis-org * add correct aws access key * Fixed Link Crash in Help Menu * Add sans-serif fallback to Helvetica styles (#37) * add npm registry setting * Move npmRegistry outside of options * Implement Show in Finder in File Tree Context Menu * Only show custom npm registries in progressbar * Use npm registry setting in install dialog * Create uninstall.sh Uninstaller script * Initial commit Uninstalling script for OSX * if watchman is already in path, do not use our own binary (#64) * Moved uninstaller moved from /desktop/uninstaller/uninstaller.sh to /desktop/deco_unpack_lib/uninstaller/uninstaller.sh * Moved it * Update uninstall.sh * Update "Project" template to RN 0.26.3 * scriptable cli-based system for building and launching in Deco (#71) * File tree matching uses full path instead of name to identify root * Remove debugging console.log * Use Electron remote for path instead of including module, workaround for missing / from paths which needs to be revisited for Windows support * Removed unused lodash imports * Updates "Project" template to RN 0.27.2 * Adds gulp task & instructions for upgrading the temporary project template * Implement cmd+w to close tab instead of window (#83) * Implement cmd+w to close tab instead of window * move close tab to compositeFileActions * copy in postinstall to Scripts path (#96) 👍 * finalize build system v1, include android support, packager switch, some misc fixes (#90) * Add focus/blur/unload events to telemetry (#97) * - [x] [iOS, Android] toggle (#98) - [x] [AVD, Genymotion] toggle - [X] Timeout = 60s, less frequent message - [X] Tweak Android launch wording - [X] Tweak packager toggle button wording - [X] Tweak 'using default config' wording - [X] Increase left sidebar original width * fix and polish error scenarios for android simulator menu (#99) 👍 * bump build number to 0.7.0
* Update README Update download link in README * Update json gem dependency version to support newer rubies See: ruby/json#229 * new secrets for travis-org * add correct aws access key * Fixed Link Crash in Help Menu * Add sans-serif fallback to Helvetica styles (#37) * add npm registry setting * Move npmRegistry outside of options * Implement Show in Finder in File Tree Context Menu * Only show custom npm registries in progressbar * Use npm registry setting in install dialog * Create uninstall.sh Uninstaller script * Initial commit Uninstalling script for OSX * if watchman is already in path, do not use our own binary (#64) * Moved uninstaller moved from /desktop/uninstaller/uninstaller.sh to /desktop/deco_unpack_lib/uninstaller/uninstaller.sh * Moved it * Update uninstall.sh * Update "Project" template to RN 0.26.3 * scriptable cli-based system for building and launching in Deco (#71) * File tree matching uses full path instead of name to identify root * Remove debugging console.log * Use Electron remote for path instead of including module, workaround for missing / from paths which needs to be revisited for Windows support * Removed unused lodash imports * Updates "Project" template to RN 0.27.2 * Adds gulp task & instructions for upgrading the temporary project template * Implement cmd+w to close tab instead of window (#83) * Implement cmd+w to close tab instead of window * move close tab to compositeFileActions * copy in postinstall to Scripts path (#96) 👍 * finalize build system v1, include android support, packager switch, some misc fixes (#90) * Add focus/blur/unload events to telemetry (#97) * - [x] [iOS, Android] toggle (#98) - [x] [AVD, Genymotion] toggle - [X] Timeout = 60s, less frequent message - [X] Tweak Android launch wording - [X] Tweak packager toggle button wording - [X] Tweak 'using default config' wording - [X] Increase left sidebar original width * fix and polish error scenarios for android simulator menu (#99) 👍 * bump build number to 0.7.0

As requested in #78. I didn't rebind the close window to a new command, which I wasn't sure would be something that was needed.