Closed Bug 1372808 Opened 7 years ago Closed 3 years ago

Ctrl+A in composition unexpectedly opens "Attach File" dialogue; should move cursor to beginning of line on MAC OS

Categories

(Thunderbird :: Message Compose Window, defect)

52 Branch
Unspecified
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: sshida, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36

Steps to reproduce:

With Thunderbird 52.1.1 (64 bit) on MacOS 10.12.4, in Japanese

1. show a mail message on IMAP mailbox
2. click "reply all"
3. type "abc"
4. Press "Control" key an "A" key (Ctrl-A)



Actual results:

Thunderbird shows "Open the file selection dialog"
Selected file is attached on compose window.




Expected results:

On macOS, Ctrl-A is already assigned "move to beginning of line".
So, in compose window, after Ctrl-A pressed,
text cursor should be moved the beginning of the current text line.

File selection dialog window should not be shown.

On thunderbird compose window, short cut key of 
"Attach file" is already assigned Shift + Command + A .

i can't find "Ctrl-A" assignment on the menu,
while the compose window is active.
Dossy, what do you think?

I don't know if it still exist but there is also MacOS Bug 504330 - Contacts Sidebar hijacks Ctrl-A keybinding in Compose window".  (On windows ctrl+A is select all, attachements shortcut is ctrl+shift+A)
Component: Untriaged → Message Compose Window
Flags: needinfo?(dossy)
Summary: Please remove "Clrl-A = Attach file" short cut key from Compose Message Window → Please remove "Ctrl-A = Attach file" short cut key from Compose Message Window
I just tried reproducing on MacOS X 10.11.6 US and TB 45.8.0, and Ctrl-A in the message compose window goes to beginning of line, and Ctrl-Shift-A actually moves cursor to beginning of line AND highlights text as selection.

I just updated to TB 52.1.1 (64-bit) and there are no changes: Ctrl-A still moves cursor to beginning of line in the message compose window, and Ctrl-Shift-A still moves the cursor and updates the text selection.

Not sure why Ctrl-Shift-A doesn't trigger the file attachment dialog for me... but as far as I'm concerned, I can't reproduce this bug.
Flags: needinfo?(dossy)
https://support.mozilla.org/en-US/kb/keyboard-shortcuts#thunderbird:mac:tb45 indicates the key mappings for c+A and c+shift+A are "same" for Mac and Windows
Aha!  So, on Mac, we have Ctrl and Cmd keys, and the page you linked indicates that "Attach File" is bound to "Command + Shift + A" not "Control + Shift + A" ...

I can confirm that Cmd-Shift-A does indeed bring up the "Attach File" dialog in the Message Compose window.  Cmd-A does what the page indicates as well, which is "Select All (text in a message, or attachments)" as well.
does the issue persists on safe mode?
also, do you have any special configuration related to key, in config editor?
Flags: needinfo?(sshida)
On Windows <ctrl>A in the compose window selects all the text as it should.
OS: Unspecified → Mac OS X
Summary: Please remove "Ctrl-A = Attach file" short cut key from Compose Message Window → Please remove "Ctrl+A = Attach File" shortcut key from Compose Message Window on MacOS
Reduced STR (per comment 0):

On Mac OS only:
1) Compose a new message
2) Type "foo" (Cursor now after "foo")
3) Press Control+A (Ctrl+A).
(Pls note the difference between "Command" and "Control" keys on Mac OS keyboards!)

Actual result
- "Attach file" dialogue opens

Expected result
- Cursor should move to beginning of line (before "foo")
Summary: Please remove "Ctrl+A = Attach File" shortcut key from Compose Message Window on MacOS → Ctrl+A in composition unexpectedly opens "Attach File" dialogue; should move cursor to beginning of line on MAC OS
Flags: needinfo?(sshida)

WFM using current beta

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.