<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Setting up customized short cut keys in FA Pages]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3842&amp;type=atom" />
	<updated>2013-02-15T17:14:14Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=3842</id>
		<entry>
			<title type="html"><![CDATA[Re: Setting up customized short cut keys in FA Pages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15618#p15618" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>The shortcut here is not to merely go to a URL but for a specific (Memo) field in a form to get focus. Will this &quot;&amp;&quot; method do it?</p></blockquote></div><p>Oh, yes you are right. I was misleaded by the original qusetion about &#039;Tab called Memo&#039;. Now I see here Memo is input field, so hot key will not work here.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2013-02-15T17:14:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15618#p15618</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Setting up customized short cut keys in FA Pages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15612#p15612" />
			<content type="html"><![CDATA[<p>In <strong>empty.po</strong> as well for relevent mods to be ported to other languages if used.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-02-15T08:37:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15612#p15612</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Setting up customized short cut keys in FA Pages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15607#p15607" />
			<content type="html"><![CDATA[<p>Thanks all for the quick reply. Just a quick question. These modification are done on the page level i.e if i am modifying the Banking and ledger page. The Short cut keys code should be implemented in the Banking and Ledger.php right?<br />I am new to FA and still analyzing the code base how it works hence this question.</p>]]></content>
			<author>
				<name><![CDATA[lavanyakashyap@gmail.com]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17366</uri>
			</author>
			<updated>2013-02-15T05:52:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15607#p15607</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Setting up customized short cut keys in FA Pages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15606#p15606" />
			<content type="html"><![CDATA[<p>The shortcut here is not to merely go to a URL but for a specific (Memo) field in a form to get focus. Will this &quot;&amp;&quot; method do it?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-02-15T03:38:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15606#p15606</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Setting up customized short cut keys in FA Pages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15599#p15599" />
			<content type="html"><![CDATA[<p>You can just add &#039;&amp;&#039; before&nbsp; &#039;M&#039; letter in tab tittle to have it available under Alt-M (Alt is standard&nbsp; hotkey activator in FA.)<br />If you use any localization, you can change it translation *.po file, and use it after *.mo file generation (see other translation related threads on the forum if you are not sure how to do it).</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2013-02-14T23:02:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15599#p15599</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Setting up customized short cut keys in FA Pages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15571#p15571" />
			<content type="html"><![CDATA[<p>Code from <a href="http://stackoverflow.com/questions/5198061/use-jquery-to-move-the-cursor-to-another-field-when-a-certain-character-is-typed">this link</a> may help.</p><p>Ctrl-M is an alternative Carriage Return character (CR) - 0x0D.</p><br /><p><strong>includes/ui/ui_controls.php</strong> has a few shortcut keys defined outside of the functions at lines 443 - 457:<br /></p><div class="codebox"><pre><code>/* Table editor interfaces. Key is editor type
    0 =&gt; url of editor page
    1 =&gt; hotkey code
    2 =&gt; context help
*/
$popup_editors = array(
    &#039;customer&#039; =&gt; array(&#039;/sales/manage/customers.php?debtor_no=&#039;, 
        113,    _(&quot;Customers&quot;), 900, 500),
    &#039;branch&#039; =&gt; array(&#039;/sales/manage/customer_branches.php?SelectedBranch=&#039;, 
        114, _(&quot;Branches&quot;), 900, 700),
    &#039;supplier&#039; =&gt; array(&#039;/purchasing/manage/suppliers.php?supplier_id=&#039;, 
        113, _(&quot;Suppliers&quot;), 900, 700),
    &#039;item&#039; =&gt; array(&#039;/inventory/manage/items.php?stock_id=&#039;, 
        115, _(&quot;Items&quot;), 800, 600)
);</code></pre></div><p>The &quot;F#&quot; function keys are coded in the succeeding function:<br /></p><div class="codebox"><pre><code>/*
    Bind editors for various selectors.
    $type - type of editor
    $input - name of related input field
    $caller - optional function key code (available values F1-F12: 112-123,
        true: default)
*/
function set_editor($type, $input, $caller=true)
{
    global $path_to_root, $Editors, $popup_editors, $Pagehelp;

    $key = $caller===true ? $popup_editors[$type][1] : $caller;

    $Editors[$key] = array( $path_to_root . $popup_editors[$type][0], $input, 
        $popup_editors[$type][3], $popup_editors[$type][4]);
    
    $help = &#039;F&#039; . ($key - 111) . &#039; - &#039;;
    $help .= $popup_editors[$type][2];
    $Pagehelp[] = $help;
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-02-13T09:17:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15571#p15571</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Setting up customized short cut keys in FA Pages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15561#p15561" />
			<content type="html"><![CDATA[<p>Finance team in my organisation want some extra short cut keys to be enabled apart from the existing ones. <br />For example <br />In the Banking and Ledger page/Payments there is a Tab called &quot;Memo&quot;. <br />I want to put a short cut key to Memo , so that if i press Cntl+M , i should be able to navigate to Memo directly. <br />Can anybody please suggest me how would do this?<br />Can i modify the Banking and Ledger Page.php? <br />Would there be any adverse effects on any other pages and the FA if i do this?</p>]]></content>
			<author>
				<name><![CDATA[lavanyakashyap@gmail.com]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17366</uri>
			</author>
			<updated>2013-02-13T06:13:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15561#p15561</id>
		</entry>
</feed>
