[Cuis-dev] [ChangeSet] Delete words with ctrl/alt + backspace on editors
Juan Vuletich
juan at jvuletich.org
Sun May 19 06:58:53 PDT 2019
On 5/16/2019 6:21 PM, Nahuel Garbezza via Cuis-dev wrote:
> It's present in basically every text editor I used.
>
> I've been told (I don't have a mac to prove it :D) that in Macs it is
> done with Option+Backspace. Because Cmd+Backspace is equivalent to the
> "delete" key I think?
Nahuel, IIRC, on Mac Shift-Backspace is equivalent to "Delete" key. That
is handled in #backspace, and your change keeps it.
Hernán, I agree with Nahuel. Shouldn't it be Option-Backspace in any
other Mac editor? Doesn't it work like that with Nahuel's change?
To me, Nahuel's code looks OK. Maybe we'd add the same to
#forwardDelete:, as in Windows and Linux, ctrl-Delete deletes the word
to the next of the cursor.
Cheers,
--
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich
>
> El jue., 16 de may. de 2019 a la(s) 18:07, Hernan Wilkinson
> (hernan.wilkinson at 10pines.com <mailto:hernan.wilkinson at 10pines.com>)
> escribió:
>
> I like it!
> Did you get this behavior from other editor? I mean, why did you
> think about it?
> Do other people find it useful? (Juan?)
>
> BTW, in mac cmd+backspace does not work... To make it work I had
> to replace "aKeyboardEvent rawMacOptionKeyPressed or: [
> aKeyboardEvent controlKeyPressed ]" with: "aKeyboardEvent
> anyModifierKeyPressed" (Juan, I need you help here too :-) )
>
> Hernan.
>
> On Wed, May 15, 2019 at 8:39 PM Nahuel Garbezza via Cuis-dev
> <cuis-dev at lists.cuis.st <mailto:cuis-dev at lists.cuis.st>> wrote:
>
> Hi!
>
> Attached is a changeset for deleting a word backwards using
> ctrl/alt + backspace, depending on the operating system.
>
> let me know your thoughts
>
> Nahuel
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st <mailto:Cuis-dev at lists.cuis.st>
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
>
>
> --
> *Hernán Wilkinson
> Agile Software Development, Teaching & Coaching*
> *Phone: +54-011*-4893-2057
> *Twitter: @HernanWilkinson*
> *site: http://www.10Pines.com <http://www.10pines.com/>*
> Address: Alem 896, Floor 6, Buenos Aires, Argentina
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20190519/0413fe62/attachment-0001.html>
More information about the Cuis-dev
mailing list