bigfive / atom-sublime-select

Enable 'sublime style' multiline selection boxes to Atom editor http://atom.io
MIT License
233 stars 49 forks source link

Can't edit what I have selected #173

Open senderic opened 4 years ago

senderic commented 4 years ago

Although I can select the area of interest, when I start typing or deleting, nothing happens...

I checked the settings, I don't see anything like that enabled.

Atom 1.47.0 x64 windows 10 package 1.7.5

morpc-gohio commented 4 years ago

I'm experiencing the same issue. Hold Alt - drag to select - hit the Backspace. Nothing happens.

Atom version 1.47.0

morpc-gohio commented 4 years ago

I changed the select key to Ctrl and it's working again. Switched back to Alt and experienced the issue. It seems to be a problem with binding to the Alt key.

dprov commented 4 years ago

I'm experiencing the same issue. (Atom 1.49.0, Sublime-Style-Column-Selection 1.75.5, using through remote desktop connexion)

It seems to be related to a loss of focus. When releasing the alt key, the focus indicator (vertical bar next to the filename in the tab, see images) turns grey. However, if I press/release alt again, the editor gains/loses focus again.

If I maintain alt while editing, it works and the editor does not lose focus once alt is released. Therefore an annoying workaround is to select with alt+mouse, hit a key e.g. backspace, release alt, then ctrl-z.

If I change the 'Select key' to ctrl for instance, it works normally.

When alt is pressed (cursor blinking) image When alt is released image

dprov commented 4 years ago

Actually, pressing alt again after selecting with alt+mouse will toggle the focus on and off. The issue seems to be with the Alt key toggling menu bar selection. A fix is to add this in keymap.cson

'.platform-win32, .platform-linux': 'alt': 'abort!'

(Fix from : https://github.com/atom/atom/issues/6037#issuecomment-237102162 )

asbestosbill commented 2 years ago

This sent me on a search for a way to disable alt menu selection globally on Windows. If you use AutoHotkey, a simple Alt::return works to prevent it, while still allowing alt to be used as a modifier.