Menu

#370 Connect the Enter key to the url textbox

v2.5.*
closed
nobody
gui (20)
v2.5.2
2015-05-12
2015-04-16
echo0
No

In the gui version please connect the keyboard Enter key to the url textbox when the cursor is in it. Thus typing an url and pressing Enter will load the page.

xowa is started with the command line :
java -Xmx256m -jar /xowa/xowa_linux.jar --app_mode gui
the version used is the latest 2.4.2.1

Discussion

  • gnosygnu

    gnosygnu - 2015-04-17
    • labels: --> gui
    • status: new --> investigating
     
  • gnosygnu

    gnosygnu - 2015-04-17

    Hmm... This should already be the behavior (it has been since v0.0.0). Specifically, I did the following:

    • Loaded XOWA GUI on a 64-bit Linux box: java -Xmx256m -jar /xowa/xowa_linux_64.jar
    • Pressed Ctrl + L. (You can also do Alt + D, or click inside the text box, or tab to it.)
    • Typed in "Help:Options"
    • Pressed Enter
    • The Options page loaded

    Let me know if I'm missing a step from above. The only other possibility is that it is related to the Linux distro. I've used both GNOME (Ubuntu / Mint) and KDE (openSUSE) and it behaves the same in each.

    Let me know if you need more info. Thanks!

     
  • Anonymous

    Anonymous - 2015-04-17

    Pressing Ctrl+L or Alt+D will select the content of the textbox but pressing enter will have no effect, i'm using gnome under ubuntu. If you say enter is responding it must be a problem from me and then you can close the ticket.

     
  • gnosygnu

    gnosygnu - 2015-04-17

    Ok. Thanks for clarifying.

    Two other questions:

    • Have you ever customized any of the shortcuts? (home/wiki/Help:Options/Shortcuts) If you have, you can try resetting to default. See: home/wiki/Help:Options
    • Do you have Ubuntu 14.04.2 LTS? If so, I'll download a live disk and try to reproduce on my side.
     
  • echo0

    echo0 - 2015-04-18

    No I didn't customize any of the shortcuts. I tried on a new install but the same result.

    For ubuntu it's an ubuntu 12. I also tried on a debian wheezy too. I just noticed that the Enter key is not working in the search textbox too.

    I'm using the same java version (from oracle) on both distro
    java version "1.7.0_51"

    Are you using openjdk-7-jre ?

     

    Last edit: echo0 2015-04-18
  • gnosygnu

    gnosygnu - 2015-04-18

    No I didn't customize any of the shortcuts. I tried on a new install but the same result.

    Cool. Thanks.

    For ubuntu it's an ubuntu 12

    Ok. I'm downloading the Live Image now from http://releases.ubuntu.com/12.04/. I'll take a look at it later today / tomorrow morning and report back

    I'm using the same java version (from oracle) on both distro
    java version "1.7.0_51"
    Are you using openjdk-7-jre?

    Yeah, using openjdk-7-jre on both Linux boxes (Mint, OpenSUSE). I use Oracle's on my Windows boxes (and a test Mac OS X system)

     
  • echo0

    echo0 - 2015-04-18

    Thanks for testing that, if it works of your side with ubuntu 12 please try the oracle java 7 package. You can download it here : http://www.oracle.com/technetwork/java/javase/downloads/server-jre7-downloads-1931105.html

    The version 1.7.0_51 can't be downloaded anymore but the latest 1.7.0_80 should be fine.

     
  • gnosygnu

    gnosygnu - 2015-04-20

    I didn't get a chance to test this out over the weekend. I'll try again sometime this week and post here. Sorry.

     
  • gnosygnu

    gnosygnu - 2015-04-27

    Again, my apologies. This week was difficult for various reasons. I'll slot some time to look at it this week. Thanks.

     
  • echo0

    echo0 - 2015-04-27

    Don't worry about this ticket ;) Take a look at it when you want. Thanks

     
  • gnosygnu

    gnosygnu - 2015-04-29

    Hi. Sorry for the delay. I tried this tonight and it does work on my side. I list the steps below.

    Can you try something similar with the Live CD? We can try to figure out if it's distro-related or even machine-related. Let me know if you need any other details


    sudo apt-get update
    # sudo apt-get install python-software-properties not needed
    sudo apt-get install python-software-properties
    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java7-installer
    

    • Unzipped XOWA using the Linux 32 bit version from here: https://sourceforge.net/projects/xowa/files/v2.4.4/ (Version shouldn't matter. I'm just being precise)
    • Ran java -jar xowa_linux.jar
    • Clicked in the textbox with "home/wiki/Main_Page"
    • Typed in "Help:Contents"
    • Pressed Enter. Page loaded
     

    Last edit: gnosygnu 2015-04-29
  • echo0

    echo0 - 2015-04-30

    It's not working I reproduce every steps as you requested, I even made a video :
    https://youtu.be/0-QFT6sIEhw

    Pressing the enter key in the search or url textbox has no effect.
    I was thinking that I'm using a french keyboard (azerty), the problem could come from that ?

     
  • gnosygnu

    gnosygnu - 2015-05-01

    Wow! Thanks for the video. Very illustrative.

    It could be the azerty keyboard, but I think it should still be sending an Enter keycode.

    Let me look at adding some debug code for v2.5.1. It should log what keycode is being sent when you press enter. I'll post again when I do so. Thanks.

     
  • gnosygnu

    gnosygnu - 2015-05-04

    I added a "show keybinding" window. in v2.5.1. When you get a chance, try the following:

    • Download v2.5.1
    • Go to [[Help:Options/Shortcuts]]
    • Click the "show keybinding" link near the right hand side of the page
    • Press "Enter" in the binding box. It reports "Enter" and "10" on my systems. Hopefully it should report something else on yours.
     
  • echo0

    echo0 - 2015-05-05

    Hello,

    It reports 16777296 in the Keycode and nothing appears in Shortcut

     
  • gnosygnu

    gnosygnu - 2015-05-06

    Cool. Thanks for the follow-up.

    It looks like 16777296 is the keycode for for keypad enter. I'm guessing this is the enter key on the azerty / your keyboard model. See http://blog.vogella.com/2014/03/14/eclipse-luna-m6-localization-update/ and http://www.eclipse.org/forums/index.php/t/159150/

    I wasn't aware of this before tonight. I'll put support for this in v2.5.2.1 and post here when done.

     

    Last edit: gnosygnu 2015-05-06
  • echo0

    echo0 - 2015-05-06

    Thanks for the links :)

     
  • gnosygnu

    gnosygnu - 2015-05-11
    • status: investigating --> done
    • Expected release: --> v2.5.2
    • Milestone: PFE --> v2.5.*
     
  • gnosygnu

    gnosygnu - 2015-05-11

    I added default behavior for Keypad_enter to the v2.5.2 build. Let me know if it still doesn't work. Thanks.

     
  • echo0

    echo0 - 2015-05-11

    It's working :) Nice work !
    Thanks

     
  • gnosygnu

    gnosygnu - 2015-05-12
    • status: done --> closed
     
  • gnosygnu

    gnosygnu - 2015-05-12

    No problem! Thanks for sticking through it, as well as the confirmation!

     

Anonymous
Anonymous

Add attachments
Cancel