Pressing <ctrl> cancels rename in Files application with "Reveal Pointer" setting active.

Bug #1643526 reported by Caio Carrara
40
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Files
Fix Released
Low
Jeremy Wootten

Bug Description

Pressing <ctrl> cancels rename file in Files application.

Steps:
1. Select a file to rename
2. Enter in `rename mode`. (Both F2 or right click > rename)
3. Press <Ctrl> key. (To copy a name, for example)
4. Application exists from `rename mode` not allowing the action.

I couldn't find any bug opened for this, sorry if this is duplicated.

Related branches

affects: elementaryos → pantheon-files
Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

Thanks for the report Caio. I cannot reproduce this with the latest Files version using an English (UK) keyboard and locale. Please can you provide more information:

1) What keyboard and locale are you using?
2) Does it happen with all files and views or onlly under some circumstances.
3) Have you customised the keyboard settings or use any accessibility modifications?
4) When not running Files does pressing Ctrl have any effects?
5) Which version of Files are you using?

Changed in pantheon-files:
status: New → Incomplete
Revision history for this message
Caio Carrara (caiocarrara) wrote :

Hi, Jeremy.

1) Keyboard English (US, international with dead keys). Locale: English
2) Happens for all files (and folders) in all views (grid, list and column)
3) None customization nor accessibility mods
4) Outside Files Ctrl has the expected behavior. Also, copy and paste shortcuts (ctrl-c, ctrl-v) works fine in Files
5) pantheon-files --version output:
[INFO 16:36:25.111718] Application.vala:155: Files version: 0.3.0.4
[INFO 16:36:25.111760] Application.vala:157: Kernel version: 4.4.0-47-generic
pantheon-files 0.3.0.3.1

Ask me anything else :)

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

Caio: Thanks for the extra information - it excludes a number of possible explanations. I'll have to have a think about it as your set up seems little different my normal one and I tried changing to your keyboard layout without problems (I assume the options for that layout are default).

Out of interest, if you click on the pathbar (or press Ctrl-L) to enter edit mode, does pressing Ctrl then exit the edit mode? In both cases you are typing into a Gtk.Entry widget. The code for the renaming widget indicates that Ctrl key events should be just passed to Gtk.

Revision history for this message
Caio Carrara (caiocarrara) wrote :

Hi, Jeremy.

I did a test entering in edit mode. When I press Ctrl the pathbar become empty and when I release the Ctrl the text back. Take a look on it: http://imgur.com/7QePC1T

Anyway, thank for your attention.

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

Thanks for trying that Caio. It is very strange, especially if it only happens in Files. Does it also happen when you rename a bookmark (right click on a bookmark and choose Rename from the context menu)? Do you have ibus or another keyboard input method running?

Revision history for this message
Caio Carrara (caiocarrara) wrote :

Hi, Jeremy.

Same behaviour renaming bookmarks. I don't have ibus and the problem happens both in my laptop keyboard and another Apple usb keyboard. It also happens if I change my keyboard layout to PT-BR, for example.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Files because there has been no activity for 60 days.]

Changed in pantheon-files:
status: Incomplete → Expired
Changed in pantheon-files:
status: Expired → Confirmed
Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

This bug has been reactivated since a further report has come in. I still cannot reproduce it however.

dubst3pp4: Any additional information you have on your setup would be welcome.

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

Caio: If the same problem occurs renaming bookmarks then the problem must be at a fairly low level since the Files code for the view and the sidebar are completely separate. Am correct in understanding that if you do an inline rename in another application (e.g renaming a bookmark in Thunar) the problem does not occur?

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

I have finally found the cause of this (I think). This happens if "Reveal pointer" is switched on in Mouse and Touchpad system settings. It also affects inline renaming of bookmarks in Thunar (but no renaming files in that application because that is done with a dialog). I suspect it is therefore a bug in the GtkTreeView or GtkCellRendererText and not in Files. I'll see if I can find a work around.

summary: - Pressing <ctrl> cancels rename in Files application
+ Pressing <ctrl> cancels rename in Files application with "Reveal
+ Pointer" setting active.
Changed in pantheon-files:
status: Confirmed → In Progress
importance: Undecided → Low
assignee: nobody → Jeremy Wootten (jeremywootten)
milestone: none → juno-beta1
Revision history for this message
dubst3pp4 (marc.hanisch) wrote :

@Jeremy thanks for pointing me to this report.
Yes, you're right: disabling the 'reveal pointer' setting solves this problem! Many thanks! :-)

Changed in pantheon-files:
status: In Progress → Fix Committed
Revision history for this message
Максим Довгаль (feronetick) wrote :

The same happens while try to switch language in search box in pantheon-files. Can anybody confirm it?

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

I can confirm but another bug report is required for this.

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

Actually there is one: #1668056

Cody Garver (codygarver)
Changed in pantheon-files:
milestone: juno-beta1 → 0.3.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.